摘要:
直接使用/etc/mysql/debian.cnf文件中[client]节提供的用户名和密码:# mysql -udebian-sys-maint -pEnter password: mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’;mysql> FLUSH PRIVILEGES;mysql> quit# mysql -uroot -pEnter password: mysql> 阅读全文