Good evening, I am currently working on a mysql backup system but I can't get it to run.
My current code:
exec ("C:\xampp\mysql\bin\mysqldump.exe --routines -h $db_server -u $db_user -p $db_pass --single-transaction $db_name > C:\xampp\htdocs\test.sql");
I read the documentation on mysqldump and tried several ways, for example the above and also:
exec ("mysqldump --routines -h $db_server -u $db_user -p $db_pass --single-transaction $db_name > C:\xampp\htdocs\test.sql");
What am I doing wrong? Thanks in advance!