2010-10-06
mysqlを5.0系から5.1系に上げようとしたら動かなくなった(´д`)
mysql5.1を使ってみたくてyum update しようとした所うまくいかず。
mysqlclient16-devel-5.1.30-1.el5.remi.x86_64 from installed has depsolving problems --> Missing Dependency: mysqlclient16 = 5.1.30-1.el5.remi is needed by package mysqlclient16-devel-5.1.30-1.el5.remi.x86_64 (installed) Error: Missing Dependency: mysqlclient16 = 5.1.30-1.el5.remi is needed by package mysqlclient16-devel-5.1.30-1.el5.remi.x86_64 (installed)
仕方ないのでremove → installしてみたら起動しなくなりました
現象
logはこんな感じでした。。
101005 12:14:43 [Note] 101005 12:14:43 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 101005 12:15:52 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 101005 12:15:52 [Warning] '--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead. 101005 12:15:52 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 480 error messages, but it should contain at least 641 error messages. Check that the above file is the right version for this program! 101005 12:15:52 [Note] Plugin 'FEDERATED' is disabled. /usr/libexec/mysqld: Unknown error 1146 101005 12:15:52 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 101005 12:15:52 InnoDB: Started; log sequence number 0 64526873 101005 12:15:52 [ERROR] Aborting 101005 12:15:52 InnoDB: Starting shutdown... 101005 12:15:57 InnoDB: Shutdown completed; log sequence number 0 64526873
結局なにが原因だかよくわからないのですが起動せず...
どうしたか
質問掲示板 - CentOSで自宅サーバー構築の記事を参考に
yum -y remove php* yum -y remove mysql-libs mysql-server mysqlclient15 mysql-devel perl-DBD-mysql mysql yum --enablerepo=remi,epel install php php-mbstring php-mysql mysql-server /etc/rc.d/init.d/mysqld start mysql_upgrade -u root -p
とやったら起動もしてmysql5.1が動きました(゜Д゜)
なんとなくmysqlclient15を明示的に消してなかったのが問題だった気がする・・・
今回はじめて知ったのはmysql_upgradeと言うコマンド。こんなのがあったんですねぇぇ
トラックバック - http://d.hatena.ne.jp/red_snow/20101006/1286324567
リンク元
- 23 http://pipes.yahoo.com/pipes/pipe.info?_id=6ffca3d513899ee44c0d1201c766e92c
- 21 http://pipes.yahoo.com/pipes/pipe.info?_id=5c957097ed152660234169b605fb3fa7
- 19 http://pipes.yahoo.com/pipes/pipe.info?_id=tDfBdGWF3RGl9XNm1L3fcQ
- 7 http://twitter.com/
- 4 http://www.google.co.jp/search?hl=ja&client=firefox-a&rls=org.mozilla:ja:official&q=utf+16+\x8E&btnG=検索&aq=f&aqi=&aql=&oq=&gs_rfai=
- 4 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=6638&forum=14&post_id=33183
- 2 http://d.hatena.ne.jp/keyword/HTML
- 2 http://longurl.org
- 2 http://search.yahoo.co.jp/search?p=EC-CUBE+??????&search.x=1&fr=top_ga1_sa&tid=top_ga1_sa&ei=UTF-8&aq=&oq=ec-cube+
- 2 http://www.google.co.jp/search?client=firefox-a&rls=org.mozilla:ja:official&channel=s&hl=ja&source=hp&q=php+php_network_getaddresses:+getaddrinfo&lr=&btnG=Google+検索
