mysql --user=root --password=root --extended-insert=false --where="ID in (1,2) AND post_author='1'" wp_7 wp_posts > 1.sql;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'mysql
--user=root --password=root --extended-insert=false --where="ID in (1,2) A' at
line 1
此外,我需要 php 字符串中的 mysqldump 的输出。不在文件中。
最佳答案
$dump = shell_exec('mysqldump --user=user --password=asdasd --host=localhost db_name');
关于mysql - MySQL 转储中出现错误并且需要 php 字符串中的 mysqldump 输出。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24199968/