mariadb
输入 mysql -uroot -p 回车进入
>use mysql;
 > update user set password=PASSWORD("newpass")where user="root";
  更改密码为 newpassord
 > flush privileges; 更新权限
> quit 退出
输入 mysql -uroot -p 回车进入
>use mysql;
 > update user set password=PASSWORD("newpass")where user="root";
  更改密码为 newpassord
 > flush privileges; 更新权限
> quit 退出
