Windows environment MySQL decompression version configuration

Source: Internet
Author: User
Tags win32

1. Download and unzip

Download mysql-5.5.10-win32.zip to your website and extract MySQL to any path, such as C: \mysql-5.5.10-win32

2. Setting Environment variables

Open computer, properties, advanced system settings, environment variables, create a new environment variable named:mysql_home, variable value for your mysql root directory, e.g. C: \ MySQL-5.5.10-win32
Then add the following in the system variable Path :; %MYSQL_home%\bin

3. Install MySQL Service

To open a command prompt as an administrator, execute the command:mysqld-install Install the MySQL service to Windows services

Note: If you want to uninstall the MySQL service, do:mysqld-remove

4. Start the MySQL service

Execute:net start mysql

Note: If you want to stop the MySQL service, do the following:net stop MySQL

5. Set the password

Input mysql-uroot into MySQL (default root password is empty)

Perform

mysql> use MySQL;
mysql> Update user Set Password=password ("New_pass") where user= "root";
mysql> flush Privileges;
Mysql> exit;

6. Login

Enter mysql-uroot-p carriage return

Enter password

Note:

Forgot password

Join in the My.ini

[Mysqld]
#跳过密码验证
#skip-name-resolve

Then enter mysql-uroot directly into the CMD and perform the steps in 1

Windows environment MySQL decompression version configuration

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.