Mysql 5.6.37 winx64 installation dual version mysql notes

Mysql 5.6.37 winx64 installation dual version mysql notes

If MySQL version 5.0 already exists on the machine, continue to install the latest version of MySQL.

1. Download the free installation compressed package from the official website.

I downloaded mysql-5.6.37-winx64.zip. Unzip the compressed package to a custom directory. For example: D:\mysql-5.6.37.

2. Add environment variables.

Right click My Computer -> Properties -> Advanced system settings (Advanced) -> Environment Variables. Click the New button under System Variables

Enter the variable name: MYSQL_HOME Enter the variable value: D:\mysql-5.6.37 (custom decompression directory), select path in the system variable, click the Edit button to add the variable value %MYSQL_HOME%\bin, and separate it from the previous variable value with ;.

3. Register Windows system services

Enter the bin directory of the mysql custom decompression directory in cmd. Enter D: and then enter cd D:\mysql-5.6.37\bin

Enter the installation command:mysqld -install service name (if you do not enter a service name, a service named mysql will be created by default)mysqld -install MySQL –defaults-file="D:\mysql-5.6.37\my.ini"

(The system service will be created with the parameters in my.ini under the specified path)

Here you need to write the mysql configuration information in my.ini into my.ini [client]

port=3306
default-character-set=utf8
[mysqld] 
# Set to the installation directory of MYSQL basedir=D:\mysql-5.6.37
# Set to MYSQL data directory datadir=D:\mysql-5.6.37\data
port=3306
character_set_server=utf8
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

4. Start MySQL

Enter in cmd

net start service name

V. Common Operations

sc delete mysql (delete the service named mysql in cmd)

mysqld remove mysql5.6 (cmd enters the bin directory of mysql and executes it to delete the service named mysql5.6)

net stop mysql (close the service named mysql)

6. Notes and Error Records

  1. The newly installed mysql port must be different from the previous one
  2. Error 1053: The service was successfully installed, but an error 1053 occurred when the service was started later. Solution: Delete the mysql service you just created and reinstall the service using mysqld -install mysql5.6.
  3. Error 1067: Prompt when starting the service. Solution: Check the my.ini file and find that basedir and datadir are written incorrectly. Change them to the correct path to solve the problem.

Summarize

The above is the Mysql 5.6.37 winx64 installation dual version mysql notes 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. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • MySQL5.6.31 winx64.zip installation and configuration tutorial
  • win10 mysql 5.6.35 winx64 free installation version configuration tutorial
  • mysql 5.6.23 winx64.zip installation detailed tutorial
  • MySql 5.6.35 winx64 installation detailed tutorial
  • MySQL 5.6.26 winx64 installation and configuration graphic tutorial (I)
  • MySql 5.6.14 winx64 configuration method (free installation version)

<<:  Uniapp's experience in developing small programs

>>:  Example of using Docker to build an ELK log system

Recommend

Example of Vue routing listening to dynamically load the same page

Table of contents Scenario Analysis Development S...

How MySQL uses transactions

Basics A transaction is an atomic operation on a ...

Implementation of Nginx configuration of local image server

Table of contents 1. Introduction to Nginx 2. Ima...

Summary of MySQL stored procedure permission issues

MySQL stored procedures, yes, look like very rare...

Vue implements the question answering function

1. Request answer interface 2. Determine whether ...

Introducing ECharts into the Vue project

Table of contents 1. Installation 2. Introduction...

Several ways to improve the readability of web pages

1. Use contrasting colours. The contrast here ref...

Case analysis of several MySQL update operations

Table of contents Case Study Update account balan...

Implementation of MySQL multi-version concurrency control MVCC

Transaction isolation level settings set global t...

Use VSCode's Remote-SSH to connect to Linux for remote development

Install Remote-SSH and configure it First open yo...

Steps to export the fields and related attributes of MySQL tables

Need to export the fields and properties of the t...

CSS and HTML and front-end technology layer diagram

Front-end technology layer (The picture is a bit e...

The principle and application of MySQL connection query

Overview One of the most powerful features of MyS...

Use of Linux ifconfig command

1. Command Introduction The ifconfig (configure a...

Detailed explanation of whereis example to find a specific program in Linux

Linux finds a specific program where is The where...