Home >Database >Mysql Tutorial >mysql数据库导入sql文件不成功_MySQL

mysql数据库导入sql文件不成功_MySQL

WBOY
WBOYOriginal
2016-06-01 13:01:192030browse

sqlyog导入数据文件问题,一直提醒:
There was an error while executing a query.
The query and the error message has been logged at:
C:\Users\liang\AppData\Roaming\SQLyog\sqlyog.err.

Please click on "Open Error File..." to open the error file.

解决方法如下:

在mysql的安装路径中找到my.ini,修改参数配置

[mysqld]下面添加:max_allowed_packet=768M 参数大小自己定

修改完毕后重启mysql服务(net stop mysql关闭,net start mysql 启动;或在计算机-->管理-->服务中找到mysql手动重启)

进入mysql查看是否成功
show variables like '%max_allowed_packet%';

显示如下:
max_allowed_packet | 805306368 说明修改成功了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn