mysql允许远程用户连接

#授权
mysql> GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘你的密码‘ WITH GRANT OPTION;
Query OK, 0 rows affected, 1 warning (0.01 sec)
#刷新权限
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

mysql> 

 

mysql允许远程用户连接

上一篇:centos 8 安装mysql-server


下一篇:Mysql连接与函数