# 回车并输入在/etc/mysql/debian.cnf中的密码
$ mysql -u debian-sys-maint -p 
# 登录以后执行以下SQL语句
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
mysql> quit;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-07-29
  • 2022-12-23
  • 2021-09-14
  • 2021-11-12
猜你喜欢
  • 2021-06-28
  • 2021-05-21
  • 2021-12-17
  • 2021-05-05
  • 2022-12-23
  • 2021-10-16
  • 2022-02-07
相关资源
相似解决方案