安裝mysql常見錯誤及解決

來源:互聯網
上載者:User

裝mysql時出現以下錯誤:

1.

checking for tgetent in -ltermcap... no
checking for termcap functions library... configure: error: No curses/termcap library found

解決方案:

yum -y install ncurses-devel

2.

../depcomp: line 571: exec: g++: not found

解決方案:

使用如下兩個命令就可把gcc,gcc-c++統統安裝上:

      yum -y install gcc

      yum -y install gcc-c++

3.

命令:mysqladmin password '密碼'

bash:mysqladmin not found

解決方案:mysqladmin 前加上路徑名【去configure --prefix=xxx指定的xxx下的mysql/bin裡運行它】

4.

報錯:/usr/local/mysql/bin/mysqld: unknown option ‘–skip-bdb’

解決方案:如果系統中有一個存在於/etc/mysql中的my.cnf,更改這個/etc/mysql/my.cnf的名字即可

5.

報錯:error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

解決方案:ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

6.用grant all privileges 給mysql授權時,出現ERROR 1290(HY000)錯誤  

在用grant all privileges on *.* to root@192.168.0.3 identified by "123" 給mysql資料庫,作遠端存取授權時,出現錯誤:
ERROR 1290 (HY000):The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement.
其解決辦法如下:
flush privileges。
再用grant all 命令。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.