phpMyAdmin在mySql文件导入期间挂起

时间:2016-11-05 23:51:18

标签: phpmyadmin

我收到了一堆.sql文件,其中没有一个是> 200k我在XAMMP中使用phpMyAdmin导入我的数据库大约80%的成功导入,必须是一个坏的.sql文件,导致phpMyAdmin挂起,但没有任何错误按摩。 phpMyAdim如何在不删除已导入的文件的情况下从中恢复?顺便说一句,我使用XAMPP 1.7.3 for Mac 感谢

1 个答案:

答案 0 :(得分:2)

由于PMA是一个网络界面,因此限制为与任何其他网络应用程序相同的帖子大小限制和超时限制等。

如果必须导入大文件,则必须从命令行执行这些操作。

6/3 PLS-00103: Encountered the symbol "=" when expecting one of the f ollowing: := . ( @ % ;
6/54    PLS-00103: Encountered the symbol ";" when expecting one of the f ollowing: . ( ) , * % & = - + < / > at in is mod remainder no t rem <an exponent (**)> <> or != or ~= >= <= <> and or like l ike2 like4 likec between || multiset member submultiset
12/4    PLS-00103: Encountered the symbol "end-of-file" when expecting on e of the following: end not pragma final instantiable order o verriding static member constructor map

使用数据库用户名mysql -u username -p db_name < /path/to/importFile.sql 替换username,使用数据库名称替换db_name,使用导入文件的完整路径替换/path/to/importFile.sql

如果你有非常大的文件,我会建议Big Dump错开上传。我已多次使用此工具,效果非常好,易于使用。