Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of installation and configuration of mysql 8.0.15 under Linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the example analysis of the installation and configuration of mysql 8.0.15 under Linux. It is very detailed and has a certain reference value. Interested friends must read it!

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

Create a folder first, and create a mysql folder under the / usr/local/ directory

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

Get the result

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

Execution result: if there is a lot of content here, I won't take all the screenshots, only the beginning and the end.

It needs to be downloaded here. Just wait a few more minutes.

The beginning

End

Installation completed successfully

Start the service

It is normal that nothing will be printed after the execution of these two commands.

Then log in to MySQL.

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

My password here is S9vMy4eoPc.p.

Login and change password

The command ALTER USER 'root'@'localhost' IDENTIFIED BY' mysql@lm.com' to change the password

Change mysql@lm.com to the new password you want to set

After 8.0, passwords are required to contain letter capitalization, special symbols and numbers. The above error should be caused by the fact that the new password does not conform to the password specification.

The above is all the contents of the article "sample Analysis of the installation and configuration of mysql 8.0.15 under Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report