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

Installation tutorial of mysql5.7.21 decompressed version under win10

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

Share

Shulou(Shulou.com)06/01 Report--

Install the extracted version of Mysql under win10, as follows

Environment: win10 64-bit

Download address of the compressed package, as shown in the figure

After downloading and decompressing, go to the folder:

Configuration Base File-my.ini:

[mysql]; set mysql client default character set default-character-set=utf8 [mysqld]; set port 3306 port = 3306; set mysql installation directory basedir=D:\ ALEX\ Mysql\ mysql-5.7.21-winx64; set mysql database data storage directory datadir=D:\ ALEX\ Mysql\ mysql-5.7.21-winx64\ data; allow maximum number of connections max_connections=200 The character set used by the server defaults to the 8-bit encoded latin1 character set character-set-server=utf8; the default storage engine default-storage-engine=INNODB that will be used when creating new tables

As shown in the figure:

Next, after opening the cmd window as an administrator, change the directory to your extracted file bin directory. Then enter mysqld install and enter to run.

Then, initialize the data directory with mysqld-- initialize.

Finally, start the service: net start mysql

Note:

Enter mysql-u root-p, and you will be prompted to enter your password. Here, about changing the initial default password:

1. Disable the service net stop MySQL

2. Open in safe mode: mysqld-- skip-grant-tables, and at the same time, open another window (cmd administrator privileges)

3. If the mysql-u root-p password is empty, enter directly; then you can enter, and then use mysql

4. Next, change the password:

(old version) update user set password=password ("123456") where user= "root"; (5.7.11) update user set authentication_string=password ("123456") where user= "root"; finally, flush privileges; is OK.

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

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