Dear All,
How does you capture the error - mysqldump: Got error: 1045: Access denied for user: 'root@localhost' (Using password: YES) from exec function when trying to connect
when trying to perform a failed mysqldump with invalid password (mysqldump -hlocalhost -uroot -pwrongpassword db_name tablename > /home/XXX.sqll)
i try excute the following, and receiving no output from the function and only log into php error log.
echo exec(mysqldump -hlocalhost -uroot -pwrongpassword db_name tablename > /home/XXX.sqll);
how should i obtained the error message from the function directly after excute the function.
Tried capture DB login failed when running exec (mysqldump..
Moderator: General Moderators