mysql5.4升级5.6_mysql 升级到5.4.5 centos

1. 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 Packages mysql.i686 5.5.37-1.fc18.remi @remi mysql-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

69c5a8ac3fa60e0848d784a6dd461da6.png## 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;

69c5a8ac3fa60e0848d784a6dd461da6.png

大盘预测

国富论

posted on 2015-12-07 19:36 华梦行 阅读(112) 评论(0)  编辑  收藏

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值