我正在嘗試做一件非常簡單的事情 - 將表導入到我的數據庫中。導入sql文件時導致MySQL 1064錯誤
mysql> dbname < libmysql.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 'dbname <
libmysql.sql' at line 1
我不明白,什麼是錯的。我甚至試圖做
-u username -h host -p dbname < libmysql.sql