linux mysql 密码修改

  • 查看用户和密码
  1. sudo cat /etc/mysql/debian.cnf
  • 使用用户、密码登录
  1. mysql -udebian-sys-maint -p
  • 修改密码
  1. alter user 'root'@'localhost' identified by '111111'
原文地址:https://www.cnblogs.com/tdsun/p/14006597.html