Mysql-共享本机数据库

1,sql 语句赋予远程连接人员有操作权限.


use mysql;

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;

flush privileges;

select host,user,password from user;

2.window配置3306端口号允许远程连接

3.关闭网络所在网段的防火墙

4.备注-window10 dell系统,需要使用安装的迈克菲软件来关闭防火墙

猜你喜欢

转载自blog.csdn.net/weixin_41609327/article/details/83413902