mysql (8.0.16) installed and precautions

1. Install the address: https: //dev.mysql.com/downloads/mysql/

2. In the installation path: D: \ mysql \ mysql-8.0.16-winx64 (path when installed, may choose) the following new my.ini file, write the following code

 (The configuration file can be changed according to the needs)

[mysqld]
Set # 3306 Port
port=3306
# Set the mysql installation directory
basedir=D:\mysql
# Set the data storage directory of mysql database
datadir=D:\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=3306
default-character-set=utf8

3. Open as Administrator cmd into the bin directory: D: \ mysql \ mysql-8.0.16-winx64 \ bin

4. Initialize the database: mysqld --initialize --user = root --console will show to remember your password, login will be used (: followed by the password)

5.mysqld install Enter

6. Start mysql: net start mysql

7. Enter mysql -u root -p, enter a password

8. Stop Mysql: net stop mysql 

Mysql installation and configuration of the above steps -

Guess you like

Origin www.cnblogs.com/fashe8888/p/10926909.html