• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

mysql and msqldump path

H

Hossein Emami

Guest
Dear friends

I don't know the path for sql database for all domain and also the mysqldump path.
I any body knows it please tell me.
Regards
 
me too. Trying to set up a cron that calls a php script with

exec("/usr/bin/mysqldump -h $dbHost --all-databases -u $dbUser -p$dbPass > $dir/mysqlbackup.sql");

and I just keep getting

sh: /mysqldump: No such file or directory

Have also tried

exec("mysqldump -h $dbHost --all-databases -u $dbUser -p$dbPass > $dir/mysqlbackup.sql");


But I get the same result. PHP safe_mode is off for this domain but on for the master value if that makes any difference.

Thanks in advance
 
yeah safe_mode is the problem

needs to be off in

/etc/php.ini

hope that helps
 
Back
Top