MySQL8.0开放远程连接方法

mysql> use mysql;
Database changed
mysql> update user set host = '%' where user = 'root';
Query OK, 0 rows affected
Rows matched: 1 Changed: 0 Warnings: 0
mysql> grant all privileges on *.* to 'root'@'%'with grant option;
Query OK, 0 rows affected

mysql> flush privileges;
Query OK, 0 rows affected

mysql>

posted on 2023-07-07 11:19  胖妞的瘦猴  阅读(78)  评论(0编辑  收藏  举报