exec('mysqldump.... not working:(

A

Anonymous

Guest
What do you mean by "it's not working"? Is exec() returning anything? It ought to return the last line of the output. I see you're just providing a filename, so the file may just be somewhere other than where you expect. Try providing a full path instead of just a filename.
 
Check where does the mysqldump binary exists...
check if the folder is there in the enviornment path..

If not you need to specify the full location
eg..

/usr/local/mysql/bin/mysqldump .....

c:\mysql\bin\mysqldump ...
 
mostafasaw said:
I Think you have an error in path

/usr/local/mysql/bin/mysqldump

I have linux hosting & apache & Cpanle

username : mtcsyr

Is path will be

/mtcsyr/local/mysql/bin/mysqldump

Thank
You should be asking this question to the webhosting company's support .
 
Back
Top