0
点赞
收藏
分享

微信扫一扫

Ubuntu mysql配置root用户远程登录

老王420 2022-02-02 阅读 145

查看mysql默认密码登录数据库

cat /etc/mysql/debian.cnf

查看root用户数据

use mysql;
select User, Host, authentication_string from user;

增加root用户远程登录权限

grant all privileges on . to ‘root’@’%’ identified by ‘pnetlab’ with grant option;

举报

相关推荐

0 条评论