jeff5656 Posted April 12, 2012 Share Posted April 12, 2012 In cpanel I have this command in a cron job: mysqldump --user=myusername --password=mypassword--databases mydatabase > /home/mydirectory/sql_backups/DUMPFILE.SQL The file is zero bytes. Is the above command wrong? Unfortunately with a cron job, you don't get an error when it's run so I don't get any feedback about what I may have done wrong. Quote Link to comment https://forums.phpfreaks.com/topic/260793-help-with-mysqldump/ Share on other sites More sharing options...
Muddy_Funster Posted April 12, 2012 Share Posted April 12, 2012 mysqldump --user=myusername --password=mypassword mydatabase > /home/mydirectory/sql_backups/DUMPFILE.SQL should work. Quote Link to comment https://forums.phpfreaks.com/topic/260793-help-with-mysqldump/#findComment-1336637 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.