品牌设计案例网站,北京南站到北京西站地铁怎么走,网站建设与维护 参考文献,企业品牌维护一段时间没有用mysql数据库#xff0c;今天突然需要使用#xff0c;结果忘记密码#xff0c;google了下找到的解决方法#xff0c;就顺便记录下#xff0c;下次碰到就不需要这么麻烦了1、输入命令 cat /etc/mysql/debian.cnf2、使用账号 debian-sys-maint 账号登录mysql密…一段时间没有用mysql数据库今天突然需要使用结果忘记密码google了下找到的解决方法就顺便记录下下次碰到就不需要这么麻烦了1、输入命令 cat /etc/mysql/debian.cnf2、使用账号 debian-sys-maint 账号登录mysql密码为 debian.cnf 中password 值(# password 值每个人的情况不一样根据实际情况)在切换到mysql3、修改root账号密码(自己方便修改为123456了)update mysql.user set authentication_stringpassword(123456) where userroot and Hostlocalhost;update user set pluginmysql_native_password;flush privileges;4、修改密码后登录mysql -u root -p