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

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

WBOY
Release: 2016-06-01 13:01:19
Original
2028 people have browsed it

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 说明修改成功了

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template