我对 MySQL 非常陌生,正在 Windows 上运行它。我正在尝试从 MySQL 中的转储文件恢复数据库,但出现以下错误:
$ >mysql -u root -p -h localhost -D database -o < dump.sql
ERROR: 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. Query: 'SQLite format 3'.
Run Code Online (Sandbox Code Playgroud)
我试过了,$ > mysql -u root -p -h localhost -D database --binary-mode -o < dump.sql但这给了我以下内容ERROR at line 1: Unknown command '\?'.
这是一个 …