I can't use mysqldump without getting an error.
I'm writing a script in php that is supposed to make a backup of my data, however I can't get mysqldump to work as a command.
I'm only having trouble with the mysqldump command in the exec() method of PHP.
exec("mysqldump --user=exampleUser --host=exampleHost exampleDB > filepath/file.sql");
The expected result is that a new file called file.sql
gets created under the given filepath (creating the file works) and that in this file all information is saved.
The actual result is an empty file.sql under the given path.
The Error message is:
The command "mysqldump" is either misspelled or could not be found.