mariadb 神奇的开启外网ip后,在内网访问出问题

Posted 72 months ago linux asoc mysql mariadb


select user,password,host from user;

查看有那些用户

然后删除匿名用户


delete from user where user='' and host='当前电脑的hostname';

delete from user where user='' and host='localhost';

FLUSH PRIVILEGES;

点击评论