当前位置:首页 > #2013 - Lost connection to MySQL server at reading initial communication packet, system error: 0 的解决方法

#2013 - Lost connection to MySQL server at reading initial communication packet, system error: 0 的解决方法

点击次数:3558  更新日期:2011-09-13
在连接mysql数据库的时候,出现了“#2013 - Lost connection to MySQL server at 'reading initial communication packet', system error: 0”这个错误。 \r\n

网上搜索了一番之后,在my.ini文件内的[mysqld]内加了skip-name-resolve也不行。

\r\n

后来发现innodb_buffer_pool_size = 7M 设置过小,调整为innodb_buffer_pool_size = 1024M即可