MySQL download and installation details graphic tutorial

MySQL download and installation details graphic tutorial

1. To download the MySQL database, visit the official website: https://www.mysql.com/

2. Click MySQL Community Server under the Community module under the DOWNLOADS module to download.

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:

basedir=D:\Program Files\JavaTool\MySQL\mysql-5.6.39-winx64 (the directory where mysql is located)

datadir=D:\Program Files\JavaTool\MySQL\mysql-5.6.39-winx64\data (mysql directory\data)

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: net start mysql . As shown in the figure, the startup is successful.

After the service is started successfully, enter the command: mysql -u root -p (there is no password for the first login, just press Enter)!

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:
  • MySQL 8.0.15 download and installation detailed tutorial is a must for novices!
  • MySQL 5.7.18 Installer installation download graphic tutorial
  • Tutorial on downloading, installing, configuring and using MySQL under Windows
  • Download MySQL 5.7 and detailed installation diagram for MySql on Mac
  • MySQL 5.7.20 compressed version download and installation simple tutorial
  • MySQL 5.7.18 download and installation process detailed instructions
  • Summary of common problems in downloading and installing MySQL 5.7 on Win7 64-bit
  • Detailed graphic instructions for downloading and installing the unzipped version of MySQL 5.7.18 and starting the MySQL service
  • MySQL 5.7 and above version download and installation graphic tutorial
  • Detailed graphic tutorial for downloading, installing, configuring and using MySQL (win7x64 version 5.7.16)

<<:  Linux file/directory permissions and ownership management

>>:  About the problem of writing plugins for mounting DOM in vue3

Recommend

JavaScript Snake Implementation Code

This article example shares the specific code of ...

Comprehensive explanation of CocosCreator hot update

Table of contents Preface What is Hot Change Coco...

Problems with nodejs + koa + typescript integration and automatic restart

Table of contents Version Notes Create a project ...

How to optimize the slow Like fuzzy query in MySQL

Table of contents 1. Introduction: 2. The first i...

Solution to forgetting mysql database password

You may have set a MySQL password just now, but f...

Detailed explanation of Vue configuration request multiple server solutions

1. Solution 1.1 Describing the interface context-...

Detailed explanation of CSS weight value (cascading) examples

•There are many selectors in CSS. What will happe...

Calculation of percentage value when the css position property is absolute

When position is absolute, the percentage of its ...

React Native startup process detailed analysis

Introduction: This article takes the sample proje...

CSS polar coordinates example code

Preface The project has requirements for charts, ...

You may need a large-screen digital scrolling effect like this

The large-screen digital scrolling effect comes f...