Configuring mysql5.7.16 under Windows

Source: Internet
Author: User

Preparatory work:
Unzip the mysql5.7.16 to the D packing directory,
Then put the My.ini file in the bin directory

Initialize database, configuration related information:
1. Run the Windows command line as an administrator (Special reminder: WIN7 and WIN7 above the system must use the administrator, otherwise the subsequent operation will be wrong)

2. Go to MySQL's Unzip directory D:\mysql-5.7.15-winx64\bin (reminder: The bin directory needs to be entered here or the subsequent operation will be wrong)

3. Register the MySQL service. Run command: mysqld--install MySQL
If it appears: "Service successfully installed." Prompt to prove successful installation of MySQL service

4. Initialize the Data directory
Input command: mysqld--initialize-insecure (Generate password-free root user)
At this point in the MySQL folder will generate a data folder, some folders and files, so that the initialization is successful

5. Start the MySQL service after initialization is complete
Input command: net start MySQL
The MySQL service has started successfully, indicating OK
6. Set the password
mysqladmin-u Root password Password

7. Start using MySQL
Input command: Mysql-u root-p
Then enter the password you just set

Configuring mysql5.7.16 under Windows

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.