Mysql 设置远程连接(自用-----仅供参考)

时间:2021-10-11 03:04:49

1.连接数据库 ----->  mysql -u root -p

2.给权限 ------>  grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘root‘ with grant option

3.保存 ----->  flush privileges