0
.sql文件在命令行中我創建了一個數據庫:語法錯誤上傳在命令行
create database mysql;
但是當我嘗試上載命令的數據庫文件:
mysql -u root -p database < dbdump.sql;
我收到一個語法錯誤,我不明白的地方我錯了
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'mysql
-u root -p database < dbdump.sql' at line 1
發佈錯誤消息,以便我們可以幫助您 –