mysql ASCII '\0' appeared in statement

  • mysql 执行sql文件时报:Warning: Using a password on the command line interface can be insecure.
    ERROR at line 2104889: ASCII ‘\0’ appeared in the statement, but this is not allowed unless option –binary-mode is enabled and mysql is run in non-interactive mode. Set –binary-mode to 1 if ASCII ‘\0’ is expected.

解决方法:mysql –binary-mode=1 -hIP -uUSER -pPWD -PPORT
use database;
source /PATH/tbl.sql

猜你喜欢

转载自blog.csdn.net/codehouse/article/details/80612330
今日推荐