0
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

Also, I need the output of the mysqldump in a php string. not in a file.

Omar Tariq
  • 7,536
  • 10
  • 38
  • 57

1 Answers1

0
$dump = shell_exec('mysqldump --user=user --password=asdasd --host=localhost db_name');
Omar Tariq
  • 7,536
  • 10
  • 38
  • 57