在我的 Ubuntu 机器上尝试使用 MySQL 将表导入数据库时,出现以下错误。
错误:
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 spesh db_hit_type < /var/www/html/spesh.com/public_html/portal/' at line 1
我使用以下命令导入表数据。
mysql -u root -p spesh db_hit_type < /var/www/html/spesh.com/public_html/portal/js/db_hit_type.sql;
最佳答案
我认为您尝试在 MySQL 命令提示符或某些客户端程序中运行此命令。您需要从服务器控制台运行 mysql 程序,而不是从 mysql 控制台运行。
关于mysql - 使用Mysql将表导入数据库时出现SQL语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37569209/