MySQL语句返回一个SQL语句?

Jrg*_*gns 6 php mysql export

我需要在远程服务器上转储表,但我无法直接访问服务器.我唯一的访问是通过PHP脚本.

有没有什么方法可以让MySQL返回

INSERT INTO `table_name` (`field1`, `field2`) VALUES ('a', 'b'), ('c', 'd')
Run Code Online (Sandbox Code Playgroud)

声明,会有什么mysqldump回报?

我没有访问phpMyAdmin,我最好不想使用exec,systempassthru.

有关其他导出方法,请参阅此问题

Unk*_*ech 5

1)你可以从exec或passthru运行mysqldump
2)看看这个:http://www.php-mysql-tutorial.com/perform-mysql-backup-php.php