• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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