win10 installation mysql8.0.16

 

First, download the installation package from the official website mysql

 

 

The second step extracting file download is complete, add the PATH mysql's bin folder location, under the new mysql my.ini file, enter

[mysqld]

Set # 3306 Port

port=3306

# Set the mysql installation directory

basedir=D:\Program Files\MySQL

# Set the data storage directory of mysql database

datadir = D: \ Users \ qiuzhiwen \ MySQL \ Data

# Maximum number of connections allowed

max_connections=200

# Allowed number of failed connections. This is to prevent someone from trying to attack the host database system

max_connect_errors=10

# Server using the default character set to UTF8

character-set-server=utf8

The default storage engine that will be used when creating a new table #

default-storage-engine=INNODB

# Default "mysql_native_password" plug-in authentication

default_authentication_plugin=mysql_native_password[mysql]

# Mysql client to set the default character set

default-character-set=utf8[client]

# Set the port to connect the server using the default mysql client

port=3306default-character-set=utf8

The third step is to open the command line (administrator) cmd Right Run as administrator

Enter mysqld --initialize --console

Record passwords

net start mysql

Successful start

#change Password

mysql -u root -p

enter password

ALTER user ‘root’ IDENTIFIED BY ‘123456’;

\ Q quit

Guess you like

Origin www.cnblogs.com/luosong3/p/11004988.html