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

What are the problems encountered when installing Mysql5.7.23 in a Win10 environment

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

Share

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

What this article shares to you is about what problems you will encounter when installing Mysql5.7.23 in the Win10 environment, 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.

I. download from the official website

2. Decompression

Extract to the commonly used disk (here I am unzipping to disk D) the my.ini file and data file in the following figure are not available at the beginning and need to be configured manually.

Third, add my.ini files

Create a new file with notepad and copy and paste the following code:

[client] port=3306default-character-set= UTF8 [mysqld] port=3306character_set_server=utf8basedir= "D:\ mysql\ mysql-5.7.23" datadir= "D:\ mysql\ mysql-5.7.23\ data" max_connections=200default-storage-engine=INNODB [mysqld] show_compatibility_56 = ONperformance_schema# skips the password phase skip-grant-tables

Then save it and name it my.ini

Fourth, configure environment variables

Computer Properties-"Advanced system Settings -"

Click the environment variable

Create a new variable name in the system variables section: MYSQL_HOME, variable value: d:\ mysql\ mysql-5.7.23 where you should write the installation path of your mysql

Set path, and add a bin directory in path

V. initialization

Right-click to run cmd as an administrator and navigate to the bin folder:

Cd / d D:\ mysql\ mysql-5.7.23\ bin

Enter under the above path of cmd:

Mysqld-initialize

Enter, and a data folder will be generated under the mysql-5.7.23 root directory. If no data folder is generated, enter the following code:

Mysqld-initialize-insecure-user=mysql

6. Continue cmd operation

Mysqld-- install mysql--defaults-file=D:\ mysql\ mysql-5.7.23\ my.ini

If running mysqld-- install installation service shows that it already exists, type mysqld-- remove to remove the previously installed mysql and run mysqld-- install again

Mysqld-install mysql

Enter net start mysql to start the database

Net start mysql

Enter mysql-u root-p to enter the database (the word "password" will appear after you enter, don't worry about it, you can enter directly, and the skip-grant-tables feature configured above), and the interface shown below will appear after you enter:

Represents a successful entry into the database

Operate the database with Mysql management tools

You can use Navicat (14-day trial is officially available; Baidu Cloud has a cracked version; NaviCat Lite is a free version that provides basic functions) or Workbench and Mysql-Front

.

These are the problems we will encounter when installing Mysql5.7.23 in the Win10 environment. 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