Tutorial on installing MySQL 5.7.28 on CentOS 6.2 (mysql notes)

Tutorial on installing MySQL 5.7.28 on CentOS 6.2 (mysql notes)

1. Environmental Preparation

1.MySQL installation path: /usr/local

2. CentOS 6.2 Server (64 bit)

3. MySQL 5.7.28 Download (64bit)

wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz

2. MySQL installation

2.1 Unzip and rename to mysql

2.2 Create a data directory under the mysql directory

2.3 Create mysql user groups and users, and set user groups and users for the mysql directory

2.4 Initialize mysql

2.5 Start mysql service

2.6 Set the MySQL service to start automatically at boot

3.MySQL connection

4. Change password

Change the generated random password to root

5. Set up remote login to MySQL (in this example, connect to MySQL remotely through Navicate)

For security reasons, by default, no machine other than the mysql host is allowed to access the mysql database service in Linux. Therefore, root needs to be reauthorized to facilitate remote access.

If Navicate still cannot connect to MySQL remotely at this time, please pay attention to the firewall problem. In an online environment, it is generally recommended to close the specified port, but not the firewall. To learn how to open a specified port, please refer to: Open a specified port in Linux

This example uses the MySQL default port 3306 for demonstration. Open the port by command vi /etc/sysconfig/iptables

6. Navicate remote login to MySQL

Test remote login to MySQL, the connection is successful.

If the following problems occur, please refer to:

1.ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords

Please refer to the link: https://www.jb51.net/article/174243.htm

2. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

Please refer to the link: https://www.jb51.net/article/174244.htm

3. The error message is: mysqld: unrecognized service

Error: Installing MySQL using binary source code results in failure to start the MySQL service using service mysqld start

Please refer to the link: https://www.jb51.net/article/174244.htm

Summarize

The above is the tutorial on how to install MySQL 5.7.28 on CentOS 6.2. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • MySQL 5.7.30 Installation and Upgrade Issues Detailed Tutorial
  • Detailed steps to install MySQL 5.7 via YUM on CentOS7
  • Detailed graphic and text tutorial on downloading, installing and configuring mysql-5.7.28 under Windows
  • MySQL 5.7.27 installation and configuration method graphic tutorial
  • MySQL5.7.27-winx64 version win10 download and installation tutorial diagram
  • MySQL 5.7 installation and configuration tutorial under CentOS7 64 bit
  • MySQL 5.7.33 installation process detailed illustration

<<:  How to parse the attribute interface of adding file system in Linux or Android

>>:  npm Taobao mirror modification explanation

Recommend

Solution to index failure in MySQL due to different field character sets

What is an index? Why create an index? Indexes ar...

A brief talk about the diff algorithm in Vue

Table of contents Overview Virtual Dom principle ...

Detailed explanation of Docker Volume permission management

Volume data volume is an important concept of Doc...

Ubuntu installation Matlab2020b detailed tutorial and resources

Table of contents 1. Resource files 2. Installati...

Several methods of deploying multiple front-end projects with nginx

I have summarized 3 methods to deploy multiple fr...

How to change the encoding of MySQL database to utf8mb4

The utf8mb4 encoding is a superset of the utf8 en...

Vue shuttle box realizes up and down movement

This article example shares the specific code for...

JavaScript canvas realizes the effect of nine-square grid cutting

This article shares the specific code of canvas t...

Detailed explanation of concat related functions in MySQL

1. concat() function Function: Concatenate multip...

CSS example code for setting scroll bar style

The CSS implementation code for setting the scrol...

JavaScript implements H5 gold coin function (example code)

Today I made a Spring Festival gold coin red enve...

Linux sudo vulnerability could lead to unauthorized privileged access

Exploiting a newly discovered sudo vulnerability ...

How to simplify Redux with Redux Toolkit

Table of contents Problems Redux Toolkit solves W...

Usage of if judgment in HTML

In the process of Django web development, when wr...