B站 地址:
https://www.bilibili.com/video/BV1HG411w7tt/?spm_id_from=333.1007.top_right_bar_window_history.content.click&vd_source=c7d7a0557cef43294c420ca995c380e8
1、登陆 mysql
进入命令窗口模式
登录mysql
mysql -uroot -p1234
2、使用mysql数据库
use mysql
3、查看当前数据库系统,有没有远程登陆账户:
注意英文符号大小写
select host,user form user;
4、授权
grant all privileges on *.* to 'root12345'@'%' identified by 'root12345' with grant option;
5、刷新
flush privileges;