Export Database To Sql Dump In Php

[Solved] Export Database To Sql Dump In Php | Php Frameworks Cakephp - Code Explorer | yomemimo.com
Question : Export database to sql dump in php

Answered by : bad-bee-pvd1wqbf2xbm

<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'password';
$dbname = 'test';
$mysqldump=exec('which mysqldump');
$command = "$mysqldump --opt -h $dbhost -u $dbuser -p $dbpass $dbname > $dbname.sql";
exec($command);
?>

Source : https://stackoverflow.com/questions/22195493/export-mysql-database-using-php-only | Last Update : Wed, 13 Jan 21

Question : Export database to sql dump in php

Answered by : bad-bee-pvd1wqbf2xbm

exec('C:\\wamp\\bin\\mysql\\mysql5.6.17\\bin\\mysqldump.exe -uroot DatabaseName> c:\\database_backup.sql');

Source : https://stackoverflow.com/questions/22195493/export-mysql-database-using-php-only | Last Update : Wed, 13 Jan 21

Answers related to export database to sql dump in php

Code Explorer Popular Question For Php Frameworks Cakephp