/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ā)生錯(cuò)誤,
網(wǎng)上說用scripts/mysql_install_db --no-defaults --user=mysql就可以。
?? 但實(shí)際情況是這樣還是錯(cuò)誤,總是 unknown option '--skip-bdb'。
??
這是因?yàn)榘惭b過程中系統(tǒng)會(huì)從目錄 /etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf 中尋找這個(gè)文件。在/etc/mysql下存在
my.cnf
這個(gè)文件,所以里面的一些參數(shù)設(shè)置和安裝不符。
?? 將 /etc/下的mysql 文件夾移動(dòng)到 /temp下,這樣就不再影響安裝。
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

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