好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

mysql数据库导入sql文件不成功 - mysql数据库栏目

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

查看更多关于mysql数据库导入sql文件不成功 - mysql数据库栏目的详细内容...

  阅读:55次