zzmelzz Posted June 17, 2021 Share Posted June 17, 2021 <?php $pathToMysqldump = "C:\xampp\mysql\bin"; $user= "root"; $pass= ""; $namedb= "test"; $output= "C:\xampp\htdocs\test\test.sql //backup saved exec("$pathToMysqldump --user=$user--password=$pass $namedb> $output"); //header('Location: http://localhost/test); exit; Hi people, i cant do it work, I use xampp and back dont creat the file .sql. Thanks a lot. Quote Link to comment https://forums.phpfreaks.com/topic/312927-php-mysqldump/ Share on other sites More sharing options...
Barand Posted June 17, 2021 Share Posted June 17, 2021 I would expect to mysqldump mentioned somewhere in the code, not just the path where it resides. Quote Link to comment https://forums.phpfreaks.com/topic/312927-php-mysqldump/#findComment-1587300 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.