初始化数据库(mariadb console,首次没有密码直接进去,切换数据库use mysql;查询用户数据表:select host,user,password from user;修改外网可以登录:update user sethost='%',password=PASSWORD('pwd') where host='localhost';修改完重启数据库


图片4.png


也可以用客户端直接连接修改用户的密码


到此环境安装已经完成