/usr/local/mysql#
scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql
Installing MySQL system tables...
091016? 5:50:35 [ERROR] /usr/local/mysql/bin/mysqld: unknown option '--skip-bdb'
091016? 5:50:35 [ERROR] Aborting
091016? 5:50:35 [Warning] Forcing shutdown of 2 plugins
091016? 5:50:35 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
Installation of system tables failed!? Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
??? shell> /usr/local/mysql/bin/mysqld --skip-grant &
and use the command line tool /usr/local/mysql/bin/mysql
to connect to the mysql database and look at the grant tables:
??? shell> /usr/local/mysql/bin/mysql -u root mysql
??? mysql> show tables
Try 'mysqld --help' if you have problems with paths.? Using --log
gives you a log in /var/lib/mysql that may be helpful.
The latest information about MySQL is available on the web at
http://www.mysql.com/.? Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS.? Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us!? And remember, if
you do mail us, you MUST use the /usr/local/mysql/scripts/mysqlbug script!
?? 這里發(fā)生錯誤,
網(wǎng)上說用scripts/mysql_install_db --no-defaults --user=mysql就可以。
?? 但實際情況是這樣還是錯誤,總是 unknown option '--skip-bdb'。
??
這是因為安裝過程中系統(tǒng)會從目錄 /etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf 中尋找這個文件。在/etc/mysql下存在
my.cnf
這個文件,所以里面的一些參數(shù)設(shè)置和安裝不符。
?? 將 /etc/下的mysql 文件夾移動到 /temp下,這樣就不再影響安裝。
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯(lián)系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機(jī)微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
