win安装远程mysql

Posted 看不见的R

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了win安装远程mysql相关的知识,希望对你有一定的参考价值。

注意: 安装时选择 Dedicated machines ,或者 service machine 否则 不能远程登陆 .

1. 创建远程用户

 create user ‘test‘@‘%‘ identified by ‘1234‘;
drop user ‘test‘; //删除用户

 2. 显示分配权限

//只能访问固定数据库

创建数据库

create database test;

设置权限

grant all privileges on test.* to test with grant option;

3. 访问测试

mysql -h 192.168.1.18 -P3306 -u test -p

如果连接成功,说明配置完成。

 

以上是关于win安装远程mysql的主要内容,如果未能解决你的问题,请参考以下文章