MySQL Free Install version configuration method

Source: Internet
Author: User
Tags mysql free

1 extracting MySQL

Unzip the file to your favorite directory, below is my own directory.

Catalog: D:\Program files\mysql\mysql-5.6.25-winx64

Will unzip the directory under the default file My-default.ini copy one copy, renamed My.ini,

and configure My.ini in Basedir (decompression path) and DataDir (data path), refer to.

2 Configuring Environment variables

The person who has configured the JDK will configure the environment variables, yes. mysql also configures environment variables.

Right-click My Computer, properties, advanced system settings (advanced), environment variables add the path to the bin in MySQL in path.

Note that this variable is added after the value of the original variable, separated from it, and the original variable value cannot be deleted .

3 registering MySQL as Windows system service

1) from the console into the bin directory under the MySQL decompression directory ( The following command must be in D:\Program files\mysql\ in the Mysql-5.6.25-winx64\bin directory

 2) Enter the Service installation command:
    mysqld Install MySQL--defaults-file= "D:\Program files\mysql\mysql-5.6.25-winx64 \my.ini "

4 starting the MySQL service

method One:
The start service command is: net start MySQL
Method Two:
Computer Right-manage-services and applications-services to find the MySQL service.
start the service by right-clicking to start or by tapping on the left-hand boot directly.

5 Changing the password of the root account

The default password for the root account is empty when the installation is complete, and you can modify the password to the specified password. such as: 123456
C:>mysql–uroot
mysql>show databases;
mysql>use MySQL;
mysql>update user SET Password=password ("123456") WHERE user= ' root ';
Mysql>flush privileges;
Mysql>quit

6 Shortcut to start the database service

1) object location input, new shortcut, right-click, Desktop: C:\Windows\System32\cmd.exe
shortcut name self-defined, OK, shortcut established successfully
2) Right-click the shortcut you just created, and then change the target column to the MySQL startup parameter:
C:\Windows\System32\cmd.exe "D:\Program files\mysql\mysql-5.6.25-winx64\ Bin"/k mysql-uroot-p Inven Tory
Explanation: cmd path "mysql Path bin directory"/k mysql-u user name-p password database name
3) Click OK to save after the modification, double click the shortcut to connect to MySQL database

MySQL Free Install version configuration method

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.