MySQL异常总结
1.Packets larger than max_allowed_packet are not allowed
MySQL的一个系统参数:max_allowed_packet,其默认值为1048576(1M),
查询:show VARIABLES like '%max_allowed_packet%';
修改此变量的值:MySQL安装目录下的my.ini文件中的[mysqld]段中的"max_allowed_packet = 1M",如更改为4M(如果没有这行内容,增加一行),保存,重起MySQL服务。现在可以load大于1M的文件了。
2.You must reset your password using ALTER USER statement before executing this statement
GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "Grid2008";
2.MySQL root密码忘记,原来还有更优雅的解法
https://www.cnblogs.com/ivictor/p/9243259.html