MySQL free installation configuration and remote access

Source: Internet
Author: User
Tags mysql free

1. Unzip the downloaded MySQL archive into a custom directory (D:\Program Files (x86) \mysql-5.6.16-winx64).

2. registering MySQL as a Windows system service

The operation is as follows:

1) Create a new My.ini file and put the My.ini file under D:\Program files (x86) \mysql-5.6.16-winx64\, My.ini the following:

[Client]port=3306default-character-set=utf8[mysqld] # Set the installation directory for MySQL Basedir=d:\program Files (x86) \ mysql-5.6.16-winx64# Data Directory set to MySQL Datadir=d:\program Files (x86) \mysql-5.6.16-winx64/dataport=3306character_set_ Server=utf8sql_mode=no_engine_substitution,strict_trans_tables

2 ) run cmd as an administrator and go to MySQL unzip the directory under the bin directory.

3) Enter the Service installation command:

Mysqld.exe-install

A successful installation will prompt the service to install successfully.

Note: The My-default.ini file is available in the root directory after MySQL decompression, if not, from somewhere else.

The Removal Service command is: Mysqld-remove

3. Start the MySQL service

Method One:

The Start service command is: net start MySQL

Method Two:

Open the Administration Tools service and locate the MySQL service.

Start the service by right-clicking to start or by tapping on the left-hand boot directly.

4. Change the root account password to 123

mysqladmin-u root password "123"

5. Remote Access

Root does not support remote access by default, you need to add authorization manually

Grant all privileges on * * to [email protected] '% ' identified by ' 123 '; Allow authorization to take effect flush privileges;
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.