当前位置:网站首页>MySQL8.0.28 installation tutorial

MySQL8.0.28 installation tutorial

2022-08-02 03:00:00 jiey0407

MySQL8.0.28 installation tutorial

1. Download and configure the installation file

1**, enter the official website to download the mysql installation package**

2**, unzip the installation package, as shown below**

3**, add configuration file my.ini**

Create a new text file, copy the following content into the file, and save the file as .ini format

[mysqld]

# Set port 3306

port=3306

# Set the installation directory of mysql

basedir=D:\Program Files\MySQL

# Maximum number of connections allowed

max_connections=200

# The number of connection failures allowed.

max_connect_errors=10

# The character set used by the server defaults to utf8mb4

character-set-server=utf8mb4

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

default-storage-engine=INNODB

# By default, the "mysql_native_password" plugin is used for authentication

#mysql_native_password

default_authentication_plugin=mysql_native_password

[mysql]

# Set the default character set of the mysql client

default-character-set=utf8mb4

[client]

# Set the default port used by the mysql client to connect to the server

port=3306

default-character-set=utf8mb4

Note: basedir is the installation directory of mysql, you can set it according to your own preferences

4**, create a mysql installation directory**

The installation directory created here is the path of the basedir configured in my.ini. If the configured directory already exists, there is no need to create it. If not, it needs to be created.

5**, copy the previously downloaded MYSQL file and the newly added my.ini file to this folder.**

Second, configure environment variables

1**, open the Control Panel, and select System, as shown below**

2**, select advanced options, open environment variables**

3**, add the bin directory of the MYSQL installation directory in the Path environment variable, as shown below**

Three, install and initialize MYSQL

1**, enter the C:WindowsSystem32 directory, find cmd.exe, right-click and select "Run as administrator"**

2**, enter the following command to enter the bin directory of the installation file**

cd /d D:Program FilesMySQLin (as shown)

3**, execute the initialization command mysqld --initialize --console, as shown below**

4**, execute the installation command**

mysqld –install (as shown below)

5**, execute the command to start the MySQL service**

net start mysql (as shown below)

4. Change the initialization password

1**, use Navicat to connect to mysql**

2**, New Connection**

3**, after the connection is successful, the password will be prompted to expire, enter a new password to **

Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials

原网站

版权声明
本文为[jiey0407]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/214/202208020249117247.html