我正在运行mysql -u root -p 'databasename' < /path/to/file.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 '<br />
<b>Fatal error</b>: Allowed memory size of 134217728 bytes exhausted (tr' at line 90
mysql> Aborted
我试图找出如何暂时解决这个问题......我尝试过的一件事是添加--max_allowed_packet=512M
到命令中。
.sql 文件为 120MB。有什么建议么?