Detailed graphic tutorial on installation, startup and basic configuration of MySQL under Windows version

Detailed graphic tutorial on installation, startup and basic configuration of MySQL under Windows version

download:

Step 1: Open the website (enter the official website to download): https://www.mysql.com, click downloads and jump to https://www.mysql.com/downloads

Step 2: Go to https://dev.mysql.com/downloads/ and select the Community option

Step 3: Click MySQL Community Server to enter the https://dev.mysql.com/downloads/mysql/ page, and then click the 5.6 version of the database

Step 4: After clicking version 5.6 in Windows operating system, you will be redirected to https://dev.mysql.com/downloads/mysql/5.6.html#downloads. The page is as follows. Confirm the version and operating system to be downloaded, and click Download.

Step 5: You don’t need to log in or register, just click No thanks, just start my download to download.

Unzip:

Unzip the downloaded zip file and put the unzipped folder into any directory. This directory is the installation directory of MySQL.

Configuration:

Open the directory and you will see the my-default.ini configuration file. Copy this configuration file and rename it to my.ini or my.cnf

#### my.ini reference configuration [mysql]
# Set the default character set of the mysql client to default-character-set=utf8 
[mysqld]
#Set port 3306 port = 3306 
# Set the installation directory of mysql to basedir=D:\mysql-5.6.44-winx64
# Set the storage directory of mysql database data datadir=D:\mysql-5.6.44-winx64\data
# Maximum number of connections allowed max_connections=200
# The default character set used by the server is the 8-bit latin1 character set character-set-server=utf8
# The default storage engine that will be used when creating a new table default-storage-engine=INNODB

Environment variables:

Add after the system variable PATH: the path of your mysql bin folder (such as D:\mysql-5.6.44-winx64\bin)

Install mysql service:

After opening the cmd window as an administrator, switch the directory to the bin directory where you unzipped the file, enter mysqld install and press Enter to run

Start the mysql service:

Enter in cmd as an administrator: net start mysql

After the service is successfully started, you can log in and enter mysql -u root -p (there is no password for the first login, just press Enter)

net stop mysql # Stop mysql

#There is no command to restart the MySQL service on the Windows operating system. #If you want to restart the service, you can only stop it first and then start it.

Summarize

The above is a detailed graphic tutorial on the installation, startup and basic configuration of MySQL under the Windows version 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:
  • Causes and solutions for invalid service name when starting MySQL service under Windows 7
  • Windows cannot start MySQL service and reports error 1067 solution
  • Solution to MySQL 5.7 not starting under Windows
  • Using batch processing to start and shut down mysql under Windows
  • How to install and start MySQL under Windows
  • Simple solution to the Chinese garbled characters and service startup problems of MySQL in Windows
  • Solution to 1067 when Mysql starts in Windows
  • Windows10 mysql 8.0.12 non-installation version configuration startup method
  • Solve the problem of PhPStudy MySQL startup failure under Windows system
  • Universal solution for MySQL failure to start under Windows system

<<:  Implementation of Docker cross-host network (overlay)

>>:  Vuex implements simple shopping cart function

Recommend

Markup Language - Phrase Elements

Click here to return to the 123WORDPRESS.COM HTML ...

Detailed application of Vue dynamic form

Overview There are many form requirements in the ...

CSS Paint API: A CSS-like Drawing Board

1. Use Canvas images as CSS background images The...

Docker file storage path, modify port mapping operation mode

How to get the container startup command The cont...

Detailed explanation of Nginx forwarding socket port configuration

Common scenarios for Nginx forwarding socket port...

How to deploy ElasticSearch in Docker

1. What is ElasticSearch? Elasticsearch is also d...

Element-ui directly clicks on the cell in the table to edit

Table of contents Achieve results Implementation ...

Use vue to implement handwritten signature function

Personal implementation screenshots: Install: npm...

One line of code teaches you how to hide Linux processes

Friends always ask me how to hide Linux processes...

Realizing tree-shaped secondary tables based on angular

First look at the effect: Code: 1.html <div cl...

Docker Gitlab+Jenkins+Harbor builds a persistent platform operation

CI/CD Overview CI workflow design Git code versio...

Analysis of the reasons why MySQL's index system uses B+ tree

Table of contents 1. What is an index? 2. Why do ...

Vuex implements simple shopping cart function

This article example shares the specific code of ...