MySQL8.0 service starts (windows10)

The root of the configuration file: my.ini

[mysqld]
# Set port 3306,
Port = 3306
# Set mysql installation directory
basedir = C: \ Program Files \ MySQL
data # Set mysql database storage directory
DATADIR = C: \ Program Files \ the MySQL \ the Data
# maximum number of connections
= 200 is max_connections
# allowed number of connection failures.
= 10 max_connect_errors
# server-side character set used by default utf8mb4
Character-the SET-Server = utf8mb4
default storage engine that will be used when creating a new table #
default-Storage-Engine = INNODB
# default "mysql_native_password" plug-in authentication
#mysql_native_password
default_authentication_plugin = mysql_native_password
[mysql]
# mysql client set the default character set
default-character-sET = utf8mb4
[client]
# set mysql client connection server default port
port = 3306
default-character-sET = utf8mb4

Note: The installation paths with their own installation path, Data folder without having to manually create

Run as administrator CMD

bin, initialization, nVdlfKit5k # z in the installation directory of the original password, need to be changed later

Installation services, PMySQL is the service name

Open service

Enter MYSQL, just enter the password

change the password

Start operation

Guess you like

Origin www.cnblogs.com/1016391912pm/p/11711303.html