mysql导入数据文件出现“MySQL server has gone away,There was an error while executi”错误解决方案

//There was an error while executing a query.
出现如上错误,是因为mysql数据库默认的内存比较小,需要修改安装目录下my.ini文件,具体修改方案是:在[mysqld]下端口下面添加一个max_allowed_packet =500M的键值对。

//关键字:出现MySQL server has gone away"问题,是因为mysql默认的"max_allowed_packet"变量值过小.

猜你喜欢

转载自ihenu.iteye.com/blog/1989226