table of Contents
I. Before You Begin
1. Cloud disk to download and install client tools package
Download: MySQL-5.7.28 + SQLyog
2. official website to download the installation package
Download: https://dev.mysql.com/downloads/installer/
Second, the installation step
1. Perform the installation package
2. Select the type of installation
Developer Default: developers default, MySQL will install the product development needs of all, not recommended
Server only: Only install MySQL service, usually deploy MySQL service use
Client only: Only install MySQL client
Full: All installed products and features included in MySQL
Custom: User-defined installation! ! ! In this paper, user-defined installation
3. Select Install Products and features
Installed to meet the basic components of MySQL development, here choose MySQL Server, select x86 or x64 determined according to the type of system.
4. Perform the MySQL configuration
MySQL default installation contracted us to provide the best configuration, here you can keep the default configuration, all the way to the next step.
5. Set the password
After MySQL installation is complete, you need to set the root password, after this password is set, be sure to keep in mind that you must use this password for later use MySQL root user to access the service.
6. Configure MySQL in the windows service
MySQL as a service program, set it to turn on Windows service and starts automatically.
7. perform configuration
Fill in every step of the above configuration is really this does not take effect, perform the following steps need to make the configuration take effect
After the execution is completed here, mysql to which the installation is complete.
8. The configuration environment variable
Mysql After a successful installation, you need to configure the environment variable, configure the MySQL command to the PATH, when access MySQL can execute mysql -u root -p command to connect to the database service on any command line window.
Third, stepped on during installation pit
1. perform configuration, it has been stuck in the start server
解决方案参考:https://www.jianshu.com/p/de3adc46c8ec
2.登录时报错:Access denied for user 'root'@'localhost'(using password:YES)
解决方案参考:https://blog.csdn.net/weixin_34397224/article/details/90454653