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

How to build MYSQL environment in WINDOWS system

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

Share

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

This article is about how to build a MYSQL environment in the WINDOWS system, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

1. Download the installation package

2. Configure environment variables

2.1 decompress the downloaded package

2.2 Environmental variables

Win 10 computer goes in like this.

3. Generate data file

Run cmd as an administrator in the directory you unzipped, eg:F:\ Program Files\ mysql-8.0.17-winx64\ bin

Execute mysqld-- initialize-insecure-- user=mysql to generate the data directory under the eg directory

4. Install mysql

Execute the command: mysqld-install

5. Start the mysql service

Net start mysql

6. Log in and change the password

Direct enter, mysql-u root-p without password when logging in for the first time

View user commands: select user,authentication_stringfrom mysql.user

Because in previous versions of mysql8, the encryption rule was mysql_native_password, while after mysql8, the encryption rule was caching_sha2_password

So if you want navicat to connect to mysql, you must change the mysql login password encryption rules to restore mysql_native_password.

ALTER USER 'root'@'localhost' IDENTIFIED BY' password' PASSWORD EXPIRE NEVER; # modify encryption rules ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY' password'; # update the user's password FLUSH PRIVILEGES; # refresh permissions ALTER USER 'root'@'localhost' IDENTIFIED BY' new password' Changing the password in this way is how to build the MYSQL environment in the WINDOWS system. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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