Linux CentOS6.5 yum install mysql5.6

Linux CentOS6.5 yum install mysql5.6

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:
  • Tutorial on installing lnmp using yum on centos7 (linux+nginx+php7.1+mysql5.7)
  • Detailed tutorial on installing Mysql5.7.19 on Centos7 under Linux
  • Linux CentOS MySQL 5.7.18 5.7.X Installation Tutorial
  • MySQL installation tutorial under Linux centos7 environment
  • Detailed explanation of installing mysql 5.7.16 linux glibc2.5 x86 64 in CentOS 6.5 (recommended)
  • How to install mysql source package in Linux CentOS6.6 system
  • Tutorial on how to build and install linux+apache+mysql+php environment with yum under centos
  • How to build and install linux+apache+mysql+php environment with yum under centos
  • Detailed tutorial on installing MySQL 5.7.11 for Linux Generic binary version in CentOS 7 via command line
  • CentOS 6.3 source code installation LAMP (Linux + Apache + Mysql + Php) operating environment steps
  • Tutorial on binary compilation and installation of MySql centos7 under Linux

<<:  Develop a vue component that encapsulates iframe

>>:  Docker-compose one-click deployment of gitlab Chinese version method steps

Recommend

Detailed explanation of keepAlive use cases in Vue

In development, it is often necessary to cache th...

Solution to MySQL Installer is running in Community mode

Today I found this prompt when I was running and ...

How to solve the problem of too many open files in Linux

The cause is that the process opens a number of f...

MySQL stored procedure in, out and inout parameter examples and summary

Stored Procedures 1. Create a stored procedure an...

Detailed example of removing duplicate data in MySQL

Detailed example of removing duplicate data in My...

How to adapt CSS to iPhone full screen

1. Media query method /*iPhone X adaptation*/ @me...

JavaScript BOM Explained

Table of contents 1. BOM Introduction 1. JavaScri...

Summary of the most commonly used knowledge points about ES6 new features

Table of contents 1. Keywords 2. Deconstruction 3...

Minimalistic website design examples

Web Application Class 1. DownForEveryoneOrJustMe ...

MySQL optimization: use join instead of subquery

Use JOIN instead of sub-queries MySQL supports SQ...

Java example code to generate random characters

Sample code: import java.util.Random; import java...

js implementation of verification code case

This article example shares the specific code of ...