One minute install mysql

People learn database knows, MySQL database is more basic grasp requirements, not only the open source community version and is free to use. Due to reasons of work or frequent replacement system, sometimes you need to install the MySQL database. In order not to have access to information for each installation, the installation process is now well summed up the problems:

1. official website to download the latest version of MySQL, here is the download version of the decompression. MySQL official website link

 

Select DOWNLOADS - Community - MySQL Community Server

2. dropdown find the latest version of MySQL, now the latest version of MySQL 8.0 version, here is my version is 5.7 (the latest version I generally do not like)

 

(Installed version, the mounting system, the system bits) are selected according to their own situation, and choose to download within the box

3. Then download their favorite path, usually installed the D drive

 

Here choose to download only (No thanks, just start my download), does not require registration or login, and then choose their own path to install it

4. After the download is complete, it is unzipped. I am here to directly extract the download path, which is the current folder. D: \ MyDrivers \ software \ MySQL \ mysql-5.7.22-winx64

 

5. After the extraction is completed, configure the environment variables. Installation path as D: \ MyDrivers \ software \ MySQL \ mysql-5.7.22-winx64 \ bin;

 

Right Computer - Properties - Advanced System Settings - Environment Variables - System variables --path (D: \ MyDrivers \ software \ MySQL \ mysql-5.7.22-winx64 \ bin;) note behind; number.

6. Create a file my.ini

 

7. as an administrator to open cmd command, change directory to the bin directory installation path, as shown below:

    Execute the command: mysqld -install

 

8. Unfortunately, the error - the procedure entry point could not be located in the dynamic link library fesetround MSVCR120.dll. Attached below workaround.

    Analysis, Windows lacks Visual C ++ 2013 library, you need to install Visual C ++ 2013 Libraries

    Official website address: Visual C ++ 2013

    

According to their language preferences, then click Download.

 

According to their type of computer system to select the appropriate version, my computer 64, so they chose vcredist_x64.

After that, it is to install

 

Installation is easy, click on the executable file, installed in seconds! In this regard, you can perform the next step.

9. played back to step 7, bin directory to directory installation directory

Execution: mysqld -install

Service successfully installed appears indicate successful installation

Continue to implement the current directory: mysqld --initialize-insecure --user = mysql

 

 

Generate data directory and create root user

10. Start mysql: net start mysql

 

Appear: MySQL service is starting

        MySQL service has started successfully.

11. landing MySQL

Command: mysql -u root -p password is blank, press the Enter key to enter.

 

12. Change the login password MySQL

For details, please see the link: MySQL Change Password ways

At this point, you're done, you can happily play up! ! ! !


Author: Ta from rivers and lakes
Original: https://blog.csdn.net/codingforhaifeng/article/details/80675498

Guess you like

Origin www.cnblogs.com/zzguan/p/11239334.html