Home  >  Article  >  Database  >  MySQL 4.0升级到5.1遇到问题及解决

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

WBOY
WBOYOriginal
2016-06-07 17:11:57991browse

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

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,就没问题了

linux

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