mysql5. 7 installation tutorial


1. Go firstOfficial websiteCheck the appropriate version. Here I choose the community version
mysql5. 7 installation tutorial

The RPM bundle is selected here
mysql5. 7 installation tutorial
Enter the Linux usr / local directory to create the MySQL folder
Execute download command


Unzip after downloading

tar xf mysql-5.7.23-1.sles12.x86_64.rpm-bundle.tar

Execute in the following order
rpm -ivh mysql-community-common-5.7.23-1.sles12.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.23-1.sles12.x86_64.rpm
rpm -ivh mysql-community-client-5.7.23-1.sles12.x86_64.rpm
rpm -ivh mysql-community-server-5.7.23-1.sles12.x86_64.rpm

To enhance security, MySQL 5 7 randomly generates a password for the root user. If the RPM package is installed, it defaults to / var / log / mysqld Log.

You can use # grep “temporary password” / var / log / mysqld Log command to obtain the temporary password of MySQL
The author here is in / var / log / MySQL / mysqld Found in log

mysql5. 7 installation tutorial

It’s strange that I’ve been making mistakes with this temporary password

Finally, use the administrator password of the currently logged in user to succeed?

what fuck? I don’t know whether it has passed through or changed before (the environment of this virtual machine is complex)
If you still can’t log in, you can refer to the following links……

Finally, configure my CNF file restart MySQL

  1. Uninstall MySQL

Query whether MySQL is installed

rpm -qa | grep mysql

Uninstall related dependencies

rpm -e –nodeps mysql-libs-5.1.73-7.el6.x86_64

Recommended Today

three. Use of JS

Take creating a cube as an example install Install three: NPM I three use quote Three and the camera control orbitcontrols included in three are introduced to control the camera: Initialize scene Scene: all three things in the scene.Camera: when using the perspective camera, pay attention to adjusting the parameters, otherwise you will not see […]