How to install MySQL Community Server 5.6.39

How to install MySQL Community Server 5.6.39

This article records the detailed tutorial of MySQL download and installation for your reference. The specific contents are as follows

1. To download the MySQL database, visit the official website:

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 historical versions. This blog downloaded 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.

1. 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 );

2. If error 1067 appears, it means that the configuration file has been modified incorrectly. Please confirm whether the configuration file is correct.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • MySQL 5.6.15 installation and configuration method graphic tutorial under Windows 8
  • MySQL Community Server 5.6 installation and configuration tutorial under Windows 8
  • MySQL 5.6.24 (binary) automatic installation script under Linux
  • Mysql5.6.36 script compilation, installation and initialization tutorial
  • How to configure the My.ini file when installing MySQL5.6.17 database
  • MySQL 5.6.22 installation and configuration method graphic tutorial
  • MySQL 5.6 installation steps with pictures and text
  • Compile and install MySQL 5.6 in CentOS Yum
  • MySQL 5.6.27 Installation Tutorial under Linux
  • Linux CentOS6.5 yum install mysql5.6

<<:  Keepalived+Nginx+Tomcat sample code to implement high-availability Web cluster

>>:  MAC+PyCharm+Flask+Vue.js build system

Recommend

Detailed explanation of MySQL's MERGE storage engine

The MERGE storage engine treats a group of MyISAM...

How to restore single table data using MySQL full database backup data

Preface When backing up the database, a full data...

Detailed steps to install CentOS7 system on VMWare virtual machine

Pre-installation work: Make sure vmware workstati...

The principle and application of ES6 deconstruction assignment

Table of contents Array destructuring assignment ...

Vue opens a new window and implements a graphic example of parameter transfer

The function I want to achieve is to open a new w...

Disable autocomplete in html so it doesn't show history

The input box always displays the input history wh...

jQuery implements dynamic tag event

This article shares the specific code of jQuery t...

Example of using docker compose to build a consul cluster environment

Basic concepts of consul Server mode and client m...

Complete step record of Vue encapsulation of general table components

Table of contents Preface Why do we need to encap...

How complicated is the priority of CSS styles?

Last night, I was looking at an interview question...

Ubuntu 18.04 disable/enable touchpad via command

In Ubuntu, you often encounter the situation wher...

Creating Responsive Emails with Vue.js and MJML

MJML is a modern email tool that enables develope...

Some lesser-known sorting methods in MySQL

Preface ORDER BY 字段名升序/降序, I believe that everyon...

Detailed explanation of 6 ways of js inheritance

Prototype chain inheritance Prototype inheritance...

Install Docker on Linux (very simple installation method)

I have been quite free recently. I have been doin...