Mysql Installation
msi files are installed: msi installation similar to conventional windows installed, double-click to complete the installation by default all the way, here is no longer installed on the msi introduced.
zip files: i.e. free installation mode, decompressed simple setting can be used. Hereinafter mounted in such a manner Mysql installation deployment.
Mysql Download
1, mysql official download: https: //www.mysql.com/downloads/
2, Baidu network disk
Link: https: //pan.baidu.com/s/13PUo30HVmXlZXNZ7eRKQyA
extraction code: q3z4
copy the contents of this open Baidu network disk phone App, the operation more convenient oh
Mysql installation and deployment
1. Unzip the downloaded zip file
2, set the environment variable
My Computer -> Properties -> Advanced -> Environment Variables, select Path, behind it to add: the path to your mysql bin folder: D: \ BVDN \ mysql-8.0.18-winx64 \ bin;
3, after completing the configuration environment variable in D: \ BVDN \ mysql-8.0.18-winx64 \ in the new configuration file mysql.ini, reads as follows:
[mysql]
# Mysql client to set the default character set
default-character-set = utf8
[mysqld]
Set # 3306 Port
port = 3306
Set # mysql installation directory
basedir = D: \ BVDN \ mysql -8.0.18-winx64
# Mysql database setting data storage directory
datadir = D: \ BVDN \ mysql -8.0.18-winx64 \ data
# Allowed maximum number of connections
max_connections = 200
# Server default character set used for the 8-bit coded character set latin1
character-set-server = utf8
# Will be used when you create a new default storage engine table
default-storage-engine = INNODB
4, Run as Administrator command prompt, enter the mysql installation directory, enter the command mysqld --initialize-insecure.
After execution, MySQL will be self-built a data folder, and built the default database, login user name is root, password is blank
5, an input command register mysql_at mysqld install mysql_at service (note is not mysqld MySQL), as shown below:
6, enter net start mysql_at command to start the mysql service.
7, after the service starts successfully, when you need to log input command (the first time you log in without a password, press the Enter directly over)
8, Change Password: ALTER USER 'root' @ 'localhost' IDENTIFIED BY 'root';