I'd like to execute a mysqldump command using exec() in PHP. However, I'm not able to get any status feedback from exec("mysqldump --user ..... etc. ). Is mysqldump available to me to execute from an exec command, and if so what path would I need to u

Avatar
  • Answered
Avatar
Scott
Hello Steve, You can definitely use the exec command to do a mySQL dump. The syntax you want to use is: /usr/bin/mysqldump -pPASSWORD -u DB_USERNAME DB_NAME > FILENAME.sql The path /usr/binshould not be necessary, but is included for efficiency. Best Regards, Scott M