What shall I do now???

ana4ever-vids wrote: I need to change the host (and the database). So I did the database's backup (with the control panel) and the files backup (via ftp).
What shall I do now???![]()
GreyDogz wrote: Use this for the backup:Use these as the input files:Code: Select all
<?php include 'config.php'; include 'opendb.php'; $backupFile = $dbname . date("Y-m-d-H-i-s") . '.gz'; $command = "mysqldump --opt -h $dbhost -u $dbuser -p $dbpass $dbname | gzip > $backupFile"; system($command); include 'closedb.php'; ?>
Code: Select all
<?php // This is an example of config.php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'password'; $dbname = 'phpcake'; ?>
Code: Select all
<?php // This is an example opendb.php $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); mysql_select_db($dbname); ?>
Code: Select all
<?php // an example of closedb.php // it does nothing but closing // a mysql database connection mysql_close($conn); ?>