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



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

i trying backup of mysql database table using php script below executing script creating backup file no info in .any thought how overcome please help me out.

script

<?php echo exec('mysqldump -u[root] -p[123456789] -h[localhost] [android] [housedetails] --where="addeddate=\'2013-11-22 09:17:28\'"> housedetails.sql'); ?>

try this:

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

php mysql

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -