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 install mysql5.7 in win10 environment

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

Share

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

This article mainly explains "how to install mysql5.7 in win10 environment". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install mysql5.7 in win10 environment.

1. Download and extract mysql

two。 Create a new configuration file my.ini in the root directory of mysql, as follows

[mysql]

# set mysql client default character set

Default-character-set=utf8

[mysqld]

# set port 3306

Port=3306

# set the installation directory of mysql

Basedir=D:\ app\ win10\ mysql-5.7.19-winx64

# set the storage directory of the data in the mysql database

Datadir=D:\ app\ win10\ mysql-5.7.19-winx64\ data

# maximum number of connections allowed

Max_connections=150

# the character set used by the server defaults to the 8-bit coded latin1 character set

Character-set-server=utf8

# default storage engine to be used when creating new tables

Default-storage-engine=INNODB

# skip_grant_table

Secure_file_priv= "/"

Max_allowed_packet=60M

3. Run cmd with administrator privileges, enter the bin directory, and perform the mysqld install installation.

4. Execute mysqld-- initialize-insecure-- user=mysql to complete initialization. There is no password by default.

5. Execute net start mysql to start mysql.

6. Log in to change the password.

At this point, I believe you have a deeper understanding of "how to install mysql5.7 in the win10 environment". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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