Issue while taking backup of mysql database table using php script -


I am trying to back up mysql database table by using php script below, but by executing this script it Creating backup file but there is no data in it How to overcome any idea, please help me Enter image details here

Script

  & lt ;? Php echo exec ('mysqldump -u [root] -p [123456789] -h [localhost] [android] [house details] --where = "added data = \' 2013-11-22 09: 17: 28 \ ' & Gt; Housestats. SQL '); ? & Gt;    

Try this:

  shell_exec ("mysqldump -u root-peepsword db_name table_name --where = \ "post_date in ('2011-12-15 06:14:55') \" & gt; /tmp/test.sql ");    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -