当前位置:网站首页>Yiwen teaches you how to install MySQL

Yiwen teaches you how to install MySQL

2022-07-23 20:28:00 The end of the world and you

Mysql install

Installation address

Mysql install

Install this item

 Insert picture description here

On the pop-up page, select the following to install :

 Insert picture description here

The configuration file

stay mysql Installation directory , establish my.ini The configuration file , edit my.ini Configure the following basic information :

[client]
#  Set up mysql Client default character set 
default-character-set=utf8
 
[mysqld]
#  Set up 3306 port 
port = 3306
#  Set up mysql Installation directory 
basedir=D:\\xxx\\mysql-8.0.27-winx64
#  Maximum connections allowed 
max_connections=20
#  The character set used by the server defaults to 8 Bit coded latin1 Character set 
character-set-server=utf8
#  The default storage engine that will be used when creating a new table 
default-storage-engine=INNODB

Start database

Administrator run cmd, Switch to mysql/bin Under the table of contents , Execute initialization command :

mysqld --initialize --console

After execution , Will be output root User's initial default password ( Please pay attention to saving password data ), Such as :

...
2018-04-20T02:35:05.464644Z 5 [Note] [MY-010454] [Server]
A temporary password is generated for [email protected]: APWCY5ws&hjQ
...
#APWCY5ws&hjQ  It's the initial password , Subsequent login needs to use , You can also change the password after login 

Install service start service

Enter the installation command

mysqld install

start-up mysql service

net start mysql

installation is complete !

原网站

版权声明
本文为[The end of the world and you]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207231955280622.html