Tutorial on installing and configuring MySql5.7 in Alibaba Cloud ECS centos6.8

Tutorial on installing and configuring MySql5.7 in Alibaba Cloud ECS centos6.8

The default MySQL version under the Alibaba Cloud yum command is 5.17****. Before installing MySQL 5.7, uninstall the previous version, including clearing the previous database - check /var/lib/mysql, and clear the historical files after backing them up.

1. Find the appropriate rpm download from https://dev.mysql.com/downloads/repo/yum/

2. After the download is complete, execute the command " yum localinstall mysql-community-release-el6-5.noarch.rpm ";

3. After completion, execute the command " yum install mysql-community-server " and wait for the installation to complete;

4. Run the command " service mysqld start ". If the startup fails, it may be caused by the existence of a historical version. Find /var/lib/mysql and clear the data in it.

5. After startup, the database will be initialized and a temporary root login password will be generated (the previous versions all had empty passwords). grep "temporary password" /var/log/mysqld.log”

You can then use the temporary password to log in to the system mysql -u root -p dZut3)i&nUi< ;

6. After logging in, the permissions are limited. You must change the password first, otherwise the following prompt will appear

By default, MySQL 5.7 has requirements for password length and complexity. If it is only used for testing and development, it is completely unnecessary to set a password of '123456'. You can use the command " SHOW GLOBAL VARIABLES LIKE 'validate% ';" to view the current password setting related parameters. If it is simply used, you can add " validate_password=off " in the configuration file /etc/my.cnf to turn off " validate_password ".

7. Restart " service mysqld restart " and log in using password 123456.

The above is the tutorial on how to install and configure MySql5.7 under Alibaba Cloud ECS centos6.8. 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!

You may also be interested in:
  • Detailed tutorial on installing MySQL 5.7.20 on RedHat 6.5/CentOS 6.5
  • Solution to the initialization error when installing mysql5.7 from rpm package in centos6.5
  • CentOS 6.4 MySQL 5.7.18 installation and configuration method graphic tutorial
  • Centos6.9 installation Mysql5.7.18 step record
  • CentOS6.8 uses cmake to install MySQL5.7.18
  • Detailed tutorial on installing MySQL 5.7.18 under CentOS 6.5
  • Deploy MySQL 5.7.17 binary installation and multi-instance configuration on CentOS 6.5
  • Tutorial on installing MySQL 5.7.28 on CentOS 6.2 (mysql notes)

<<:  How to build a React project with Vite

>>:  Docker Detailed Illustrations

Recommend

Example of Vue uploading files using formData format type

In Vue, we generally have front-end and back-end ...

JavaScript implements the nine-grid mobile puzzle game

This article shares the specific code for JavaScr...

Uniapp's experience in developing small programs

1. Create a new UI project First of all, our UI i...

Workerman writes the example code of mysql connection pool

First of all, you need to understand why you use ...

How to set up a shared folder on a vmware16 virtual machine

1. Set up a shared folder on the virtual machine:...

Detailed introduction to CSS font, text, and list properties

1. Font properties color, specifies the color of ...

Grid systems in web design

Formation of the grid system In 1692, the newly c...

MySQL 5.7 installation and configuration tutorial under CentOS7 (YUM)

Installation environment: CentOS7 64-bit, MySQL5....

HTML tag default style arrangement

html, address,blockquote,body, dd, div,dl, dt, fie...

Steps to deploy hyper-V to achieve desktop virtualization (graphic tutorial)

The hardware requirements for deploying Hyper-V a...

What you need to know about responsive design

Responsive design is to perform corresponding ope...

Summary of Nginx location and proxy_pass path configuration issues

Table of contents 1. Basic configuration of Nginx...

MySQL 8.0.12 installation steps and basic usage tutorial under Windows

This article shares the installation steps and us...

The difference between clientWidth, offsetWidth, scrollWidth in JavaScript

1. Concept They are all attributes of Element, in...