How to share your mysql

Original link: http://www.cnblogs.com/YjfDIY/p/10399308.html

Today for a new computer, the time to share your で mysql tangled for a long time, send a note of essays

1. Directly open their Navicat create a user

 

Host%

 

Because the test is so I'll give the user all the permissions assigned

2. Open cmd, enter the database installation directory \ bin location

First landing mysql

Enter the user table

Give permission

ALTER USER 'admin'@'%' IDENTIFIED BY 'admin' PASSWORD EXPIRE NEVER;  

Modified encryption (version 8.0 looks after encryption with modifications, an error might not change)
the ALTER the USER 'ADMIN' @ '%' the WITH mysql_native_password the IDENTIFIED BY 'ADMIN';
the FLUSH PRIVILEGES;

Restart Service

windows down method:

    win + R input services.msc found inside right click restart MySQL

2. Change the host firewall

    Open windowsDefender Firewall -> Advanced Settings -> Drawing Rules -> New Rule

 

Then you can go to the link

 

Reproduced in: https: //www.cnblogs.com/YjfDIY/p/10399308.html

Guess you like

Origin blog.csdn.net/weixin_30500289/article/details/94785071