MySQL 4.0升级到5.1遇到问题及解决


1、数据库数据量暴增,对比其他业务类似的数据库发现某个表的数据量异常,最后确定了一个重复迁移数据的bug...

120301 17:30:43 [ERROR] Column count of mysql.db is wrong. Expected 22, found 15. The table is probably corrupted

120301 17:30:43 [ERROR] mysql.user has no `Event_priv` column at position 29

120301 17:30:43 [ERROR] Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.

2、MySQL 4.0升级5.1 SA工程师在写自动脚本shi忘记./bin/mysql_upgrade  -u root -p --sock=/tmp/mysql5.sock了

3、以前使用MyISAM引擎的时候,多线程update往往会把表压坏,最近在insert的时候也发送了表损毁,最后锁定insert tablename values select ....... union all select .......,会带来表损毁的问题,拆开,一个一个insert,就没问题了

相关内容

    暂无相关文章