LINUX默认密码修改
# 1. 查看默认配置文件. sudo vim /etc/mysql/debian.cnf
# 2. 找到用户debian-sys-maint的用户名和密码登陆数据库 mysql -u debian-sys-maint -p ******** # 使用mysql库 use mysql;
# 3. 修改mysql中root的密码 update mysql.user set authentication_string=password('new password') where user='root' and Host ='localhost';
# 4. 重启mysql sudo service mysql restart