php - Mysqldump and --where not compatible with "<" and ">", how to do? -
that, it's ok:
exec("c:/wamp/bin/mysql/mysql5.6.17/bin/mysqldump.exe --host=".$host." --user=".$username." --password=".$password." ".$db." ".$table." --where=date_timestamp=1432883235 > ".$rep_local.$file." ");
that (--where=date_timestamp>1432883235) , it's not ok:
exec("c:/wamp/bin/mysql/mysql5.6.17/bin/mysqldump.exe --host=".$host." --user=".$username." --password=".$password." ".$db." ".$table." --where=date_timestamp>1432883235 > ".$rep_local.$file." ");
because ">" it's file out. how can do?
i tried it:
exec("c:/wamp/bin/mysql/mysql5.6.17/bin/mysqldump.exe --host=".$host." --user=".$username." --password=".$password." ".$db." ".$table." --where="date_timestamp>1432883235" > ".$rep_local.$file." ");
but have error "unexpected date_timestamp"
and tried it:
exec("c:/wamp/bin/mysql/mysql5.6.17/bin/mysqldump.exe --host=".$host." --user=".$username." --password=".$password." ".$db." ".$table." -w"date_timestamp>1432883235" > ".$rep_local.$file." ");
thank help...
Comments
Post a Comment