I'm running mysqldump on a pretty big database (the dump file I got when testing at home was around 1.2 M😎.
I got it so it's giving me a dump file, but it seems to be just header - it looks like this:
-- MySQL dump 8.23
-- Host: (my host) Database: (my db)
-- Server version 4.1.9-standard
I'm using the following string:
$command ="mysqldump --opt --host=$myhost --user=$myuser --password=$mypass $dbname > $mysql_dump_file";
system($command);
I'm thinking either:
I'm not using the right "copy" of mysqldump - i.e. I should be specifying the full path - though that gave me nothing when I tried it. Of course it's difficult to work out exactly what the right path IS - Interland's tech support is a bit sketchy.
I should somehow be using some additonal or different command.
I tried exec(), I tried "-u $user -p$password syntax - what else should I try?
Could the size of the dump be the problem? I wonder how I could get feedback from mysqldump as to what it's doing, or why it's bailing out.
Any help greatly appreciated!