MySQL 8.0.15 installation and configuration graphic tutorial and password change under Linux

MySQL 8.0.15 installation and configuration graphic tutorial and password change under Linux

I wrote this blog to remember that I just installed MySQL8.0.15 successfully. I searched many blogs on the Internet before but failed. Then I searched a few on Google and finally installed it. Before installing the database, I reinstalled the server system, so the installation environment is very clean. I hope this blog can help you, and I don’t have to look for it everywhere when I install it myself in the future.

The first step is to download the installation package wget https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm , and other versions can be downloaded from the official website

First create a folder and create a mysql folder in the /usr/local/directory

Execute wget https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm

Get the result

The second step is to directly execute yum -y localinstall mysql80-community-release-el7-1.noarch.rpm

Execution result: There is a lot of content here, so I won’t take screenshots of all of it. I only took screenshots of the beginning and the end.

Please wait a few minutes to download.

beginning

Conclusion

The installation is completed successfully

Start the service

After executing these two commands, nothing will be printed, which is normal.

Then log in to MySQL

First, get the default password. Execute grep "A temporary password is generated for root@localhost" /var/log/mysqld.log

My password here is S9vMy4eoPc.p

Login and change password

Command to change the password: ALTER USER 'root'@'localhost' IDENTIFIED BY '[email protected]';

Change [email protected] to the new password you want to set

After 8.0, passwords must contain uppercase and lowercase letters, special symbols, and numbers. The above error is caused by the new password not meeting the password specification.

Setup successful.

Wonderful topic sharing:

MySQL different versions installation tutorial

MySQL 5.7 installation tutorials for various versions

MySQL 5.6 installation tutorials for various versions

mysql8.0 installation tutorials for various versions

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:
  • Detailed explanation of the idea of ​​installing mysql8.0.11 and changing the root password and connecting navicat for mysql
  • How to correctly modify the ROOT password in MySql8.0 and above versions
  • Solve the problem of changing the password when logging in for the first time after installing MySQL 8.0
  • Summary of how to modify the root password in MySQL 5.7 and MySQL 8.0
  • MySQL 8.0.19 winx64 installation tutorial and change the initial password under Windows 10
  • MySQL 8.0.12 installation configuration method and password change
  • How to modify the root user password in mysql 8.0.16 winx64 and Linux
  • Problems with changing password and connecting to Navicat when installing and using MySQL 8.0.16 under Windows 7
  • mysql8.0 forgotten password modification and net command service name invalid problem
  • The correct way to change the password in MySQL 8.0

<<:  js to realize the production method of carousel

>>:  Summary of basic usage of $ symbol in Linux

Recommend

JavaScript to implement search data display

This article shares the data display code for Jav...

Detailed Introduction to Nginx Installation and Configuration Rules

Table of contents 1. Installation and operation o...

Mini Program to Implement Calculator Function

This article example shares the specific code of ...

Issues with using Azure Container Registry to store images

Azure Container Registry is a managed, dedicated ...

Optimized implementation of count() for large MySQL tables

The following is my judgment based on the data st...

Practical record of Vue3 combined with TypeScript project development

Table of contents Overview 1. Compositon API 1. W...

How to deploy python crawler scripts on Linux and set up scheduled tasks

Last year, due to project needs, I wrote a crawle...

Vue.js implements timeline function

This article shares the specific code of Vue.js t...

A brief discussion on VUE uni-app's commonly used APIs

Table of contents 1. Routing and page jump 2. Int...

Div css naming standards css class naming rules (in line with SEO standards)

There are many tasks to be done in search engine o...

Design Theory: Ten Tips for Content Presentation

<br /> Focusing on the three aspects of text...

HTML table markup tutorial (1): Creating a table

<br />This is a series of tutorials provided...

Prototype and prototype chain prototype and proto details

Table of contents 1. Prototype 2. Prototype chain...

Four ways to modify the default CSS style of element-ui components in Vue

Table of contents Preface 1. Use global unified o...