This article shares the simple process of installing mysql5.6 with linux yum for your reference. The specific content is as follows 1. For a newly opened cloud server, you need to check whether the system has MySQL installed. # yum list installed | grep mysql 2. If you find that the system comes with MySQL, do this decisively # yum -y remove mysql-libs.x86_64 3. Execute it in the directory where you store the file. Here is an explanation. Since the MySQL yum source server is abroad, the download speed will be slow. Fortunately, mysql5.6 is only 79M, while mysql5.7 is 182M, so this is why I don't want to install mysql5.7 # wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm 4. Then execute this sentence. Explain that this rpm is not the installation file of mysql, but two yum source files. After execution, mysql-community-source.repo and mysql-community.repo are added in the directory /etc/yum.repos.d/ # rpm -ivh mysql-community-release-el6-5.noarch.rpm 5. At this time, you can use the yum repolist mysql command to check whether there is already a mysql installable file #yum repolist all | grep mysql 6. Install mysql server command (yes all the way): # yum install mysql-community-server 7. After successful installation # service mysqld start 8. Since the password of the mysql root user is empty by default when mysql is just installed, we need to log in as the mysql root user in time (press the Enter key for the first time, no need to enter the password) and change the password # mysql -u root # use mysql; # update user set password=PASSWORD("Enter the root user password here") where User='root'; # flush privileges; 9. Check whether MySQL starts automatically and set the command to start automatically # chkconfig --list | grep mysqld # chkconfig mysqld on 10.MySQL security settings (the system will ask you a few questions along the way. If you don’t understand, copy them and translate them. Basically, answer yes all the way): #mysql_secure_installation The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Develop a vue component that encapsulates iframe
>>: Docker-compose one-click deployment of gitlab Chinese version method steps
In development, it is often necessary to cache th...
Today I found this prompt when I was running and ...
The cause is that the process opens a number of f...
Stored Procedures 1. Create a stored procedure an...
Detailed example of removing duplicate data in My...
This article introduces how to install the system...
1. Media query method /*iPhone X adaptation*/ @me...
Table of contents 1. BOM Introduction 1. JavaScri...
Table of contents 1. Keywords 2. Deconstruction 3...
Web Application Class 1. DownForEveryoneOrJustMe ...
There is a business that queries the 5 most recen...
Use JOIN instead of sub-queries MySQL supports SQ...
Sample code: import java.util.Random; import java...
This article example shares the specific code of ...
How to modify the style of the el-select componen...