win10 mysql 5.6.35 winx64 free installation version configuration tutorial

win10 mysql 5.6.35 winx64 free installation version configuration tutorial

mysql 5.6.35 winx64 free installation version configuration tutorial under win10, the specific contents are as follows

1. Unzip the MySQL compressed package

Unzip the downloaded MySQL compressed package to a custom directory. I put it in C:\software\mysql-5.6.35-winx64\mysql_master

Add environment variables

Configure the MySQL path to the path path

這里寫圖片描述

2. Edit the unzipped file my-default.ini

[client]
port=3306
default-character-set=utf8

[mysqld] 
#Set MySQL directory basedir=C:/software/mysql-5.6.35-winx64/mysql_master
#Set MySQL data datadir=C:/software/mysql-5.6.35-winx64/mysql_master/data
port=3306
character_set_server=utf8

default-storage-engine=MYISAM
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

Register Windows system service

Register MySQL as a Windows system service

The operation is as follows:

1) Right-click the start menu and select "Command Prompt (Administrator)" (must be under administrator privileges)

這里寫圖片描述

2) Enter the service installation command:
Enter cmd and enter the mysql bin directory and run

mysqld install MySQL --defaults-file="C:\software\mysql-5.6.35-winx64\mysql_master\my-default.ini"

After the installation is successful, a message will pop up saying that the service has been successfully installed.

If it appears

The service already exists!
The current server installed: “C:\software\mysql-5.6.35-winx64\mysql_master\bin\mysqld” –defaults-file="C:\software\mysql-5.6.35-winx64\mysql\master\my-default.ini” MySQL
Indicates that the service has been registered and can be removed.
The command to remove the service is: mysqld remove

5. Start MySQL service

Method 1:

The command to start the service is: net start mysql

Method 2:

Open the management tool service and find the MySQL service.

Start the service by right-clicking and selecting Start or directly clicking Start on the left.
If the service fails when starting, check the imagePath path in the registry editor to see if it is correct. At first, my path was wrong and it kept failing to start. Later, after I modified it, it started successfully.

"C:\software\mysql-5.6.35-winx64\mysql_master\bin\mysqld" --defaults-file="C:\software\mysql-5.6.35-winx64\mysql_master\my-default.ini" MySQL3306

6. Change the root account password

When the installation is just completed, the default password of the root account is empty. At this time, you can change the password to the specified password. For example: 123456

Method 1:

c:>mysql –uroot 
mysql>show databases; 
mysql>use mysql; 
mysql>UPDATE user 
SET password=PASSWORD(“123456”) WHERE user='root'; 
mysql> FLUSH PRIVILEGES; 
mysql>QUIT

Method 2:

Use third-party management tools to change passwords. Such as Navicat for MySQL

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 8.0.15 installation and configuration tutorial under Win10
  • mysql8.0.11 winx64 installation and configuration method graphic tutorial (win10)
  • Install and configure IIS + MySQL + nginx + php7.1.7 under Win10
  • mysql5.7.19 winx64 installation and configuration method graphic tutorial (win10)
  • MySQL 5.7.19 installation and configuration method graphic tutorial (win10)
  • About the basic configuration tutorial of MySQL5.7.17 free installation version under Win10 (with pictures and text)
  • Detailed installation and configuration tutorial of MySQL 5.7 under Win10

<<:  VSCode configuration Git method steps

>>:  Detailed explanation of Vue's caching method example

Recommend

Use href to simply click on a link to jump to a specified place on the page

After clicking the a tag in the page, you want to ...

HTML table markup tutorial (4): border color attribute BORDERCOLOR

To beautify the table, you can set different bord...

Native js to achieve star twinkling effect

This article example shares the specific code of ...

Uniapp WeChat applet: Solution to key failure

uniapp code <template> <view> <ima...

CentOS 7.x docker uses overlay2 storage method

Edit /etc/docker/daemon.json and add the followin...

Detailed explanation of the general steps for SQL statement optimization

Preface This article mainly shares with you the g...

CSS style solves the problem of displaying ellipsis when the text is too long

1. CSS style solves the problem of displaying ell...

A brief discussion on VUE uni-app conditional coding and page layout

Table of contents Conditional compilation Page La...

Comprehensive analysis of isolation levels in MySQL

When the database concurrently adds, deletes, and...

Detailed explanation of JavaScript data types

Table of contents 1. Literals 1.1 Numeric literal...

How to create users and manage permissions in MySQL

1. How to create a user and password 1. Enter the...

Detailed explanation of Nginx log customization and enabling log buffer

Preface If you want to count the source of websit...

How to install Elasticsearch7.6 cluster in docker and set password

Table of contents Some basic configuration About ...