BUG: Cannot load from mysql.proc. The table is probably corrupted
来源:互联网 发布:4k网络电视什么牌子好 编辑:程序博客网 时间:2024/04/30 18:16
修复mysql 5.1升级至5.5出现的BUG: Cannot load from mysql.proc. The table is probably corrupted
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`;
- 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
- BUG: Cannot load from mysql.proc. The table is probably corrupted
- BUG: 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
- 1548 cannot load mysql.proc.the table is probably corrupted
- 解决MySQL中【Cannot load from mysql.proc. The table is probably corrupted。】的问题
- MySQL 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
- ERROR 1548 (HY000): Cannot load from mysql.proc. The table is probably corrupted
- 1548-Cannot load from mysql.proc. The table is probably corrupted
- create stored procs Cannot load from mysql.proc. The table is probably corrupted
- Error code:1728 Cannot load from mysql.proc. The table is probably corrupted
- 1548-Cannot load from mysql.proc. The table is probably corrupted
- 使用C#打造通用的数据库连接类
- Win8 Metro UI风格的Web设计资源分享
- Http_Post
- CF 85D
- 订单最小量限制的增强
- BUG: Cannot load from mysql.proc. The table is probably corrupted
- objective-c block 讲解
- cocos2d 粒子效果2
- lcd驱动调试常见问题总结
- pre-link的app无法内置显示在idle上
- MCS-51汇编语言常用指令集
- 触摸屏驱动调试常见问题总结
- 感知哈希算法"(Perceptual hash algorithm)
- PCL Kinect Fusion项目安装配置