关于mysql:MySQL-8-远程-root-访问qbit

环境

OS: Ubuntu 20.04
MySQL: 8.0.30

步骤

mysql -u root
mysql> use mysql;
# 查看账号信息
mysql> select user, host, authentication_string from user;
# 设置任意 ip 可应用 root 连贯
mysql> update user set host='%' where user='root';
# 设置明码为 xxxx
grant all privileges on *.* to 'root'@'%' identified by 'xxxx' with grant option; 

本文出自 qbit snap

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理