CentOS 6.4 使用YUM 安裝MySQL5.5

來源:互聯網
上載者:User

標籤:style   http   使用   os   資料   io   div   工作   

1、首先需要下載Yum的支援包:

 

  http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm

 

2、下載完成後將Yum庫匯入到你的本地:

 

  yum local install mysql-community-release-el6-*.noarch.rpm   3、這個Yum庫包含了MySQLServer,MySQL工作台管理工具以及ODBC驅動,現在可以通過下面的命令簡單地安裝MySQLServer:    yum install mysql-community-server 

4、至此我就可以使用Yum簡單地管理MySQL更新,並能確保總是從官網軟體庫得到最新的發布版。

 

附錄:

1、root password update failed

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement.

解決辦法: 

  [**@localhost ~]# mysql   mysql>  set  global  read_only=0;   Query OK, 0  rows  affected (0.00 sec)   mysql> flush  privileges ;   Query OK, 0  rows  affected (0.00 sec)   mysql> quit   [**@localhost ~]# /usr/bin/mysql_secure_installation  #這一步是對mysql進行初始化,包括設定密碼,清除一些測試資料,關閉遠端連線 等等。

如此便可以重新更新root密碼了!

相關文章

聯繫我們

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