# 创建mysql数据库网络连接用户
create user 'root123'@'%' identified by 'root123'
# 修改数据库用户root的密码
alter user 'root123'@'%' identified with mysql_native_password by 'root123'
# 给root用户赋予权限
grant all privileges on *.* to 'root123'@'%' with grant option
# 刷新所有权限
flush privileges;
# 查看用户的所有权限
select * from user \G