Home > Database > Mysql Tutorial > body text

Detailed tutorial on configuration of mysql 5.6.35 winx64 installation-free version under win10

零下一度
Release: 2017-05-13 13:10:29
Original
1999 people have browsed it

This article mainly introduces win10 mysql 5.6.35 winx64 free installation version configuration tutorial for everyone. It has certain reference value and interested friends can refer to it. Let’s take a look at

mysql 5.6.35 winx64 installation-free version configuration tutorial under win10. The specific content is as follows

1. Unzip the MySQL compressed package

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

Add environmentVariables

Configure the MySQL path to the path path

Detailed tutorial on configuration of mysql 5.6.35 winx64 installation-free version under win10

2. Edit the decompressed file my-default.ini

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

[mysqld] 
#设置MySQL目录
basedir=C:/software/mysql-5.6.35-winx64/mysql_master
#设置MySQL数据
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
Copy after login

Register windows system service

Register mysql as a windows system service

The operation is as follows:

1) Right-click the mouse to start the menu and select "Command Prompt (Administrator)" (must Under administrator privileges)

Detailed tutorial on configuration of mysql 5.6.35 winx64 installation-free version under win10

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 successful installation, the service will be prompted Successful installation.

If

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, remove it Service.
The removal service command is: mysqld remove

5. Start the MySQL service

Method 1:

The command to start the service is: net start mysql

Method 2:

Open the management tool Services, find the MySQL service.

Start the service by right-clicking and selecting Start or directly clicking Start on the left.
If it prompts that the service failed when starting, check whether the imagePath path is correct in the registration editor. At first, my path was wrong and the startup failed. Later, after modifying it, the startup was successful

"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. Modify the password of the root account

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

Method one:

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

Method two:

Use third-party management Tool for password modification. Such as Navicatfor MySQL

[Related recommendations]

1. Special recommendation:"php programmer toolbox"V0 .1 version download

2. Free mysql online video tutorial

3. Those things about database design

The above is the detailed content of Detailed tutorial on configuration of mysql 5.6.35 winx64 installation-free version under win10. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template