Home >Database >Mysql Tutorial >还原大备份mysql文件失败的解决方法分享_MySQL

还原大备份mysql文件失败的解决方法分享_MySQL

WBOY
WBOYOriginal
2016-06-01 13:23:04914browse

bitsCN.com 用下面方法解决(管理mysql用的是navicat).,设置以下几个参数的值后就正常了,以下语句也可以在mysql的控制台上执行 .

show variables like '%timeout%';
show variables like '%packet%';
set global max_allowed_packet=99328000;
set global wait_timeout=2880000;
set global interactive_timeout=2880000;
-- wait_timeout=2880000
-- interactive_timeout=2880000
-- max_allowed_packet=100M

PS:如果是在服务器上,要记得恢复后这几个参数要调回去,不然性能会下降的,具体这几个参数功能,大家自己找找吧.bitsCN.com

Statement:
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