我编辑了 deian.cnf 修改了mysql(ubuntu服务器)的密码
须藤vi /etc/mysql/debian.cnf
我改变
用户=debian-sys-maint 密码= *
到
用户=debian-sys-maint
密码=我的密码
然后我尝试进入 mysql 的控制台
mysql -udebian-sys-maint -p
并输入密码“mypassword”
它报道了
mysql error 1045(280000) access denied for user 'debian-sys-maint '@' localhost using password 'yes'
Run Code Online (Sandbox Code Playgroud)
我试图删除mysql并重新安装,错误是一样的。
欢迎您的评论
mysql ×1