mysql数据库导入sql文件不成功_MySQL
程序员文章站
2022-05-21 13:25:41
...
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.
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 说明修改成功了
上一篇: VC ++ 后台消息模拟
下一篇: 浅谈php的优缺点_php技巧