centOs6 + installation mysql5.7 detailed tutorial on Linux - the front end of a small fish pond

https://coyhom.github.io/

Human nature is repetition, as a non-professional to learn linux linux is the best way to repeat

Environmental centos6.5

Version 5.7

1: detecting whether the system comes to install mysql

Check the library:

1
yum list installed | grep mysql

2: Remove the system comes with mysql and its dependencies command:

1
yum -y remove mysql-libs.x86_64

3: to add CentOS rpm source, and choose the newer source command, executed one by one, enter y enter the place to note:

1
2
3
4
5
6
7
 wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
yum localinstall mysql-community-release-el6-5.noarch.rpm
yum repolist all | grep mysql
yum-config-manager --disable mysql55-community
yum-config-manager --disable mysql56-community
> yum-config-manager --enable mysql57-community-dmr
> yum repolist enabled | grep mysql

ps If the error
-bash: yum-config-manager: command not found

Command library has not installed, run: yum install yum-utils
subsequent question mark knock y

4: Package is just great to start installing mysql server command:

1
> yum install mysql-community-
       
       
        
        Big Box   centOs6 + installation mysql5.7 detailed tutorial on Linux - the front end of a small fish pond an class = "keyword"> server
       
        
        
        
       

5: Start the mysql command:

1
> service mysqld start

6: Check whether mysql from the start, and set to open from the start command:

1
2
> chkconfig 
> chkconfig mysqld on

7: mysql Security Set command:

1
mysql_secure_installation

If this step to enter the password you enter an empty but you can not get to continue to enter the following command:

1
2
3
4
5
6
7
> -Service mysqld STOP 
> the mysqld_safe --skip-Grant--uroot--p MySQL Tables &
# knockout round first blank by default
> use MySQL;
> Update the mysql.user SET authentication_string = password ( 'password must be included to prevent subsequent problems at least two direct digital master or blank ' ) WHERE User = ' the root ' ;
> the flush privileges;
> quit

Installed a success. . Give encouragement Well ~


Guess you like

Origin www.cnblogs.com/lijianming180/p/12099828.html