mysql启动部分错误及解决办法

mysql启动部分错误及解决办法

Filed under: 东写西读 |  

1、 install_mysql_db的时候出现“FATAL ERROR: Could not find ./bin/my_print_defaults”
解决办法:指定basedir和datadir
/usr/local/webserver/mysql/scripts/mysql_install_db –user=mysql –basedir=/usr/local/webserver/mysql –datadir=/usr/local/webserver/mysql/data

2、启动mysqld_safe的时候出现“Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist”(可以查看日志的得到)
解决办法:同上,指定datadir
/usr/local/mysql-5.5.11/bin/mysqld_safe –user=mysql –datadir=/data/mysql/3306/data &

3、启动mysql的时候出现“[ERROR] Plugin ‘InnoDB’ init function returned error.”
原因是以前启动的时候有了innodb的相关信息,只要删除data目录中得ib_logfile0等文件即可


Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

4 Comments »

  1. Comment by e8924e0ac米加林电视棒 | [Reply]

    e8924e0ac学习了支持一下哟

  2. Comment by tuskekdmgz | [Reply]

    nwcjsufdi, http://www.lxwgludzwc.com bohlpmiggc

  3. Comment by Independent escorts in sydney | [Reply]

    nsapbufdi, http://www.boardroomescorts.com.au/ Escorts Sydney, wSfDDav.

  4. Comment by Buy kg site xanax | [Reply]

    usdpaufdi, http://www.shf-law.net/xanax.html Buy xanax online in the usa, XSEcfix.

RSS feed for comments on this post. TrackBack URI

Leave a comment

If you want to leave a feedback to this post or to some other user´s comment, simply fill out the form below.

(required)

(required)