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 Example of MySQL InnoDB Locking Mechanism

1. InnoDB locking mechanism The InnoDB storage en...

How to configure SSL certificate in nginx to implement https service

In the previous article, after using openssl to g...

Reasons and solutions for slow MySQL query stuck in sending data

Because I wrote a Python program and intensively ...

Mysql specifies the date range extraction method

In the process of database operation, it is inevi...

The difference between ${param} and #{param} in MySQL

The parameter passed by ${param} will be treated ...

Detailed explanation of MySQL from getting started to giving up - installation

What you will learn 1. Software installation and ...

Two ways to open and close the mysql service

Method 1: Use cmd command First, open our DOS win...

MySQL infobright installation steps

Table of contents 1. Use the "rpm -ivh insta...

Solution for importing more data from MySQL into Hive

Original derivative command: bin/sqoop import -co...

Detailed explanation of the principle of Vue monitoring data

Table of contents 1. Introduction II. Monitoring ...

Windows 10 1903 error 0xc0000135 solution [recommended]

Windows 10 1903 is the latest version of the Wind...