Installation under MySQL Windows

Source: Internet
Author: User

[Master Host]

Service Registration MYSQLD Install MySQL--defaults-file= "D:\IDE\mysql-5.7.20-winx64\my.ini"
Modify the Registry Hkey_local_machine\system\currentcontrolset\services\mysql
Initialize Mysqld--initialize
Start the net start MySQL

==================================================================================
Since MYSQL5.6 start root is a random password, you need to change the password
net stop MySQL
CD "C:\Program Files (x86) \mysql\mysql 5.7\bin"
Start Mysqld--skip-grant-tables
Mysql-ane "Update mysql.user set Authentication_string=password (' Mynewpassword ') where user= ' root '"
Mysqladmin shutdown
net start MySQL
Mysql-uroot-p
Enter Password: (Enter the password ' Mynewpassword ' and hit <Enter>)
==================================================================================

Unloading:
Remove Service mysqld Remove
SC Delete MySQL

reg delete "Hkey_local_machine\system\controlset001\services\eventlog\application\mysql"/F
reg delete "Hkey_local_machine\system\controlset002\services\eventlog\application\mysql"/F
reg delete "Hkey_local_machine\system\currentcontrolset\services\eventlog\application\mysql"/F

[Slave Slave machine]

Mysqld Install Mysql-slave--defaults-file= "D:\IDE\mysql-5.7.20-winx64-slave\my.ini"

Installation under MySQL 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.