Install MySQL Server 5.6 on CentOS 7 / RHEL 7
2016-08-26 22:11
351 查看
1、
yum install wget
2、
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
3、
rpm -ivh mysql-community-release-el7-5.noarch.rpm
4、
[root@localhost ~]# ls -1 /etc/yum.repos.d/mysql-community*
/etc/yum.repos.d/mysql-community.repo
/etc/yum.repos.d/mysql-community-source.repo
[root@localhost ~]#
5、install mysql
yum install mysql-server
6、
systemctl start mysqld
7、systemctl stop mysqld
8、
systemctl stop mysqld
9、
systemctl stop mysqld
10、enter and input your password
mysql -u root
11、reset your password
mysql> use mysql;
mysql> update user set password=PASSWORD("GIVE-NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit
http://sharadchhetri.com/2014/07/31/how-to-install-MySQL-server-5-6-on-centos-7-rhel-7/
yum install wget
2、
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
3、
rpm -ivh mysql-community-release-el7-5.noarch.rpm
4、
[root@localhost ~]# ls -1 /etc/yum.repos.d/mysql-community*
/etc/yum.repos.d/mysql-community.repo
/etc/yum.repos.d/mysql-community-source.repo
[root@localhost ~]#
5、install mysql
yum install mysql-server
6、
systemctl start mysqld
7、systemctl stop mysqld
8、
systemctl stop mysqld
9、
systemctl stop mysqld
10、enter and input your password
mysql -u root
11、reset your password
mysql> use mysql;
mysql> update user set password=PASSWORD("GIVE-NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit
http://sharadchhetri.com/2014/07/31/how-to-install-MySQL-server-5-6-on-centos-7-rhel-7/
相关文章推荐
- How to install MySQL Server 5.6 on CentOS 7 / RHEL 7
- Install PHP 7, Apache, MySQL 5.6 on CentOS / RHEL 7.1 & 6.7 + Wordpress
- How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7
- How to Install MySQL 5.6 on CentOS 6.3/RedHat EL6/Fedora
- Install VirtualBox 4.1.4 on Fedora 15/14, CentOS/Red Hat (RHEL) 5.6/6
- Install MySQl 5.6 on CentOS 6.5
- remove and re-install mysql 5.6 on centOS 6.4
- How to Install MySQL 5.6 on CentOS 6.3/RedHat EL6/Fedora
- Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 & Fedora 19-12 [转]
- Install MySQL 5.7 on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.11
- install mysql 5.6 from binary on CentOS 6.4
- Install MySQL on CentOS/Red Hat (RHEL) 6.5/5.10
- How to Install Tomcat 7.0.68 Server on CentOS/RHEL 7/6/5
- Install MySQL 5.7 on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.11
- How to install redis server on CentOS 7 / RHEL 7
- mysql -server-5.6 install master and slave on ubuntu 14.04server
- Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 & Fedora 19-12
- Install MySQL 5.5.30 on RHEL/CentOS 6-5, Fedora 18-12
- 配置 Squirrelmail/Roundcude Webmail Server 与 DNS, Postfix, Dovecot and MySQL on RHEL 6 /CentOS 6
- Install MySQL 5.5.27 64-bit RPM on CentOS 6.2 x86_64