MySQL 4.0升級到5.1遇到問題及解決 |
發(fā)布時間: 2012/9/3 17:06:44 |
1、數(shù)據(jù)庫數(shù)據(jù)量暴增,對比其他業(yè)務類似的數(shù)據(jù)庫發(fā)現(xiàn)某個表的數(shù)據(jù)量異常,最后確定了一個重復遷移數(shù)據(jù)的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-
2、MySQL 4.0升級5.1 SA工程師在寫自動腳本shi忘記./bin/mysql_upgrade -u root -p --sock=/tmp/mysql5.sock了 3、以前使用MyISAM引擎的時候,多線程update往往會把表壓壞,最近在insert的時候也發(fā)送了表損毀,最后鎖定insert tablename values select ....... union all select .......,會帶來表損毀的問題,拆開,一個一個insert,就沒問題了
本文出自:億恩科技【m.1tcdy.com】 |