MySQL8 installation and configuration

Official website download address

https://dev.mysql.com/downloads/mysql/

1. Unzip the zip package to the corresponding path : my path D:\tools

2. Add environment variables : Path = D:\tools\mysql-8.0.11\bin

3. Modify the configuration file my.ini : add the my.ini file to the MySQL installation directory for modification

basedir=D:\tools\mysql-8.0.11
datadir=D:\mysqldata

1. Run cmd as an administrator to the mysql installation path and execute mysqld -install

successfully installed means success

If it is already installed, the following is the case

2. Then enter the command net start mysql  to start the mysql service, enter mysql -u root -p (the first time you install mysql without a password, just press Enter), you can log in to mysql

 

Remember my 5.7

For features and improvements see:

MySQL 8.0 official version 8.0.11 released: 2 times faster than MySQL 5.7

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325091498&siteId=291194637