简体   繁体   English

如何调试执行线

[英]How to debug an execution line

I want do debug this line: 我要调试此行:

exec("mysqldump --add-drop-table -h 127.0.0.1 -u$db_user -p$db_pass $db_name > $db_name.sql");

... because this is not working. ...因为这不起作用。 Is it possible? 可能吗? I want to create a script that get all content from several databases and this line is not working, it creates a .sql file but does not save any info. 我想创建一个从几个数据库中获取所有内容的脚本,并且此行不起作用,它创建了一个.sql文件,但未保存任何信息。 there. 那里。

Add a space after the -u . -u之后添加一个空格。 reference link 参考链接

exec("mysqldump --add-drop-table -h 127.0.0.1 -u $db_user -p$db_pass $db_name > $db_name.sql");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM