I have a code to backup my database by using mysqldump
. However, the output is a file with blank data inside. Below is the script.
$command = "mysqldump -u root -p vti_ctes_demo > db/backupfile.sql";
system($command);
I have a code to backup my database by using mysqldump
. However, the output is a file with blank data inside. Below is the script.
$command = "mysqldump -u root -p vti_ctes_demo > db/backupfile.sql";
system($command);
mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
it looks like you forgetting to type the password