sudocat /etc/mysql/debian.cnf
mysql -u debian-sys-maint -p
# 使用mysql库
use mysql;# 下面这句命令有点长,请注意。
update mysql.user set authentication_string=password('1237894560') where user='root' and Host ='localhost';
update user set plugin
mysql5.7----修改密码及配置远程连接修改初始密码sudo cat /etc/mysql/debian.cnfmysql -u debian-sys-maint -p# 使用mysql库use mysql;# 下面这句命令有点长,请注意。update mysql.user set authentication_string=password('1237894560') where user='root' and Host ='localhost';update user set