设置mysql5.7远程连接

来源:互联网 发布:电动车 知乎 编辑:程序博客网 时间:2024/06/06 01:16

1、命令行窗口:mysql-u root-p然后输入密码

2、use mysql;

Grantall on *.* to 'root'@'%' identifiedby 'root用户的密码' withgrant option;

flush privileges;