1. To download the MySQL database, visit the official website: https://www.mysql.com/ 2. Click Since the latest version is: MySQL Community Server 5.7.21, it is recommended that bloggers download the historical version. This blog downloads 5.6.39 . Download steps: Enter and select the MySQL version and host Select the corresponding bit number according to your computer to download. This computer is 64-bit, so click download. Go to the next page, which requires you to register a MySQL account, but you can also download directly without registering. Click No thanks, just start my download and select the directory you want to download. 3. Configure the MySQL database. The configuration steps are as follows: There are two types of MySQL installation files, one in msi format and the other in zip format. The zip format needs to be decompressed by yourself. After decompression, MySQL can actually be used, but it needs to be configured. If the user does not configure and uses MySQL directly, the error shown in the figure will appear. This is because the environment variables are not configured. Configuring environment variables is simple: My Computer -> Properties -> Advanced -> Environment Variables Select PATH and add the path of your mysql bin folder after it: D:\Program Files\JavaTool\MySQL\mysql-5.6.39-winx64\bin After configuring the environment variables, you also need to modify the configuration file (if not configured, the error in the figure will appear when you start it later!: Error 2 The system cannot find the file). The default configuration file for mysql-5.6.1X is in D:\Program Files\JavaTool\MySQL\mysql-5.6.39-winx64my-default.ini, or you can create a my.ini file yourself. Modify or add configuration in it:
Note: The encoding of the my.ini file must be English encoding (such as ANSI in Windows), not UTF-8 or GBK. Run cmd as an administrator (it must be run as an administrator, otherwise the permissions are insufficient), Enter the command: cd D:\Program Files\JavaTool\MySQL\mysql-5.6.39-winx64\bin to enter the bin folder of mysql (regardless of whether the environment variables have been configured, you must enter the bin folder, otherwise error 2 will still be reported when starting the service later) Enter mysqld -install (If you do not run it as an administrator, an error will occur due to insufficient permissions: Install/Remove of the Service Denied!) Installation Successful Start the service and enter the command: After the service is started successfully, enter the command: Press Enter directly, as shown in the figure, the login is successful. Error summary: If an error occurs when starting the service, please see Note: Error 2 and Error 1067 often occur at this time. If "Error 2 System cannot find file" appears, check whether the configuration file has been modified or whether the operation has been entered in the bin directory. If the configuration file has been modified correctly and entered the bin folder, you need to delete mysql first (enter mysqld -remove) and then reinstall it (enter mysqld -install); if error 1067 appears, it means that the configuration file has been modified incorrectly. Confirm whether the configuration file is correct. Summarize The above is the graphic tutorial on MySQL download and installation details introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time! You may also be interested in:
|
<<: Linux file/directory permissions and ownership management
>>: About the problem of writing plugins for mounting DOM in vue3
I use the simultaneous interpretation voice recog...
Notice! ! ! This situation can actually be avoide...
Table of contents Preliminary Notes Problem Repro...
Table of contents 1 Background 2 Create a contain...
Table of contents Pull the image Run the image (g...
1. Effect display An astronaut watch face written...
Website compatibility debugging is really annoyin...
Introduction: Nginx (pronounced the same as engin...
Table of contents What is a relational database? ...
1. Command Introduction The passwd command is use...
This article uses an example to describe how to u...
This article uses examples to describe the introd...
Table of contents introduction MySQL High Availab...
Table of contents Class Component Functional Comp...
When I first started setting up an ftp server on ...