Centos用yum升級mysql到(5.5.37)

來源:互聯網
上載者:User

標籤:

http://www.cnblogs.com/ikodota/p/use_yum_update_mysql.html1. Change root user
su -## OR ##sudo -i
2. Install Remi repository
## CentOS 6 and Red Hat (RHEL) 6 ##rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

 

3. Check Available MySQL versions
yum --enablerepo=remi,remi-test list mysql mysql-server

Output:

Loaded plugins: changelog, fastestmirror, presto, refresh-packagekit...remi                                                            | 3.0 kB     00:00     remi/primary_db                                                 | 106 kB     00:00     Available Packagesmysql.i686                               5.5.37-1.fc18.remi                        @remimysql-server.i686                        5.5.37-1.fc18.remi                        @remi
4. Update or Install MySQL 5.5.37
yum --enablerepo=remi install mysql mysql-server

 

5. Start MySQL server and autostart MySQL on boot
/etc/init.d/mysqld start ## use restart after update## OR ##service mysqld start ## use restart after update chkconfig --levels 235 mysqld on

 

6. MySQL Secure Installation
/usr/bin/mysql_secure_installation

 

7. Connect to MySQL database (localhost) with password
mysql -u root -p ## OR ##mysql -h localhost -u root -p

 

8. Create Database, Create MySQL User and Enable Remote Connections to MySQL Database按 Ctrl+C 複製代碼## CREATE DATABASE ##mysql> CREATE DATABASE webdb; ## CREATE USER ##mysql> CREATE USER ‘webdb_user‘@‘10.0.15.25‘ IDENTIFIED BY ‘password123‘; ## GRANT PERMISSIONS ##mysql> GRANT ALL ON webdb.* TO ‘webdb_user‘@‘10.0.15.25‘; ## FLUSH PRIVILEGES, Tell the server TO reload the GRANT TABLES ##mysql> FLUSH PRIVILEGES;按 Ctrl+C 複製代碼

Centos用yum升級mysql到(5.5.37) (轉)

聯繫我們

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