mysql在CentOS6.3上安裝

來源:互聯網
上載者:User

標籤:blog   http   os   使用   ar   strong   檔案   art   div   

方法1:使用rpm包進行安裝下載MySQL-shared-5.6.20-1.el6.x86_64(為瞭解決檔案衝突安裝的,但是在我安裝時檔案衝突問題還是沒有得到解決)MySQL-shared-compat-5.6.20-1.el6.x86_64(為了相容性安裝的)MySQL-server-5.6.20-1.el6.x86_64MySQL-client-5.6.20-1.el6.x86_64 安裝順序如上下載順序,遇到的問題如下問題1:檔案衝突問題在安裝msql-server時遇到檔案衝突問題,最後通過yum remove mysql-libs-5.1.61-4.el6.x86_64(系統存在的衝突檔案)最後才順利安裝完成。

問題2:添加mysql 使用者及使用者組時無法添加跟檔案的隱藏許可權有關使用lsattr命令查看檔案的隱藏許可權,使用chattr命令取消某些隱藏許可權。http://hellosa.blog.51cto.com/2698675/554253 問題3:安裝成功後啟動服務,一直提示這個錯誤The server quit without updating PID file (/var/lib/mysql/*.pid)最後查了網上好多解決方案,最終一直沒能解決,最後沒辦就放棄使用該方法了  方法2:直接yum 安裝yum  install mysql-server mysql mysql-devel啟動:sudo service mysqld start報錯:Can‘t find messagefile ‘/usr/share/mysql/english/errmsg.sys‘
原因:少了mysql-libs-5.1.61-4.el6.x86_64包
安裝包:sudo yum install mysql-libs-5.1.61-4.el6.x86_64再次啟動:sudo service mysqld start還是啟動失敗:MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]
查看mysql日誌:sudo more /var/log/mysqld.log
報錯資訊: Can‘t open the mysql.plugin table. Please run mysql_upgrade to create it.解決方案:sudo  mysql_install_db --user=mysql --datadir=/var/lib/mysql
重新啟動又遇到一個問題:140903 22:50:59 [ERROR] Can‘t start server: Bind on TCP/IP port: Address already in use
140903 22:50:59 [ERROR] Do you already have another mysqld server running on port: 3306 ?於是我就按照提示查看是否有mysql的進程在跑: ps aux |grep ‘mysql*‘結果發現確實有,是我之前安裝跑起來的:root     16651  0.0  0.0 150112  2092 ?        S    06:30   0:00 sudo /usr/libexec/mysqld --skip-grant
mysql    16652  0.0  0.3 378688 27392 ?        Sl   06:30   0:19 /usr/libexec/mysqld --skip-grant於是我就把這兩個進程kill掉:sudo kill 16651 sudo kill 16652再次啟動服務,終於成功了! 

mysql在CentOS6.3上安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.