mysql升级5.5.20时遇到的问题:1548-Cannot load from mysql.proc. The table is probably corrupted
来源:互联网 发布:ae auto sway mac 编辑:程序博客网 时间:2024/05/21 23:33
LINUX下将mysql从5.1升级至5.5后,发现存储过程不能用了。创建和使用存储过程时就会提示Cannot load from mysql.proc. The table is probably corrupted。
查遍整个百度,结果还是印证了那一句话“天下文章一大抄”啊!
所有的文章几乎都是这么说的
解决方法非常简单,运行mysql_upgrade命令即可。此命令会在数据目录下生成一个文本文件mysql_upgrade_info,里面的内容为升级后的数据库版本。
但不知道什么原因,在我这里无效,升级后各种升级OK,但仍然报这个错误。
最后还是求助GOOGLE吧
http://bugs.mysql.com/bug.php?id=50183
原因是mysql.proc升级时有个字段没有升级成功。
在5.1中mysql.proc表的comment字段是varchar(64):
`comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
但在5.5中应该是text:
`comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, So,执行下面的语句,把这个字段修改为text,就彻底OK了:
ALTER TABLE `proc`
MODIFY COLUMN `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL AFTER `sql_mode`;
MODIFY COLUMN `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL AFTER `sql_mode`;
- mysql升级5.5.20时遇到的问题:1548-Cannot load from mysql.proc. The table is probably corrupted
- 解决MySQL中【Cannot load from mysql.proc. The table is probably corrupted。】的问题
- Cannot load from mysql.proc. The table is probably corrupted
- Cannot load from mysql.proc. The table is probably corrupted
- Cannot load from mysql.proc. The table is probably corrupted
- 修复mysql 5.1升级至5.5出现的BUG: Cannot load from mysql.proc. The table is probably corrupted
- MySQL 1548 Cannot load from mysql.proc. The table is probably corrupted的解决办法
- 1548 cannot load mysql.proc.the table is probably corrupted
- ERROR 1548 (HY000): Cannot load from mysql.proc. The table is probably corrupted
- 1548-Cannot load from mysql.proc. The table is probably corrupted
- 1548-Cannot load from mysql.proc. The table is probably corrupted
- 1548-Cannot load from mysql.proc. The table is probably corrupted
- 1548-Cannot load from mysql.proc. The table is probably corrupted
- Mysql报Cannot load from mysql.proc. The table is probably corrupted
- Mysql报Cannot load from mysql.proc. The table is probably corrupted
- Mysql报错:Cannot load from mysql.proc. The table is probably corrupted
- Mysql报Cannot load from mysql.proc. The table is probably corrupted
- BUG: Cannot load from mysql.proc. The table is probably corrupted
- 题目69:How Many Tables
- log4cxx中DailyRollingFileAppender模式增加类似MaxBackupIndex属性的功能(C++)
- Java和.Net版通用工具类实现--生成自定义Web Html/Excel测试用例和测试报告
- 常用的xpath
- 电商价格战——“永恒”的败笔
- mysql升级5.5.20时遇到的问题:1548-Cannot load from mysql.proc. The table is probably corrupted
- [DLL]创建和静态使用动态链接库dll
- MySQL之alter语句用法总结
- 面试100题:15.求二叉树的镜像
- 优化UITableView性能
- Linux 查看设备的常用命令
- html文件有保存的编码
- C#专题-C#的签名和重载,范围
- C#获取CPU序列号/网卡MAC地址/硬盘序列号