$ sudo apt install mysql-server

 或者

sudo apt-get install mysql==version (下载指定版本)

 

 

sudo cat /etc/mysql/debian.cnf 命令

在这个文件里面有着MySQL默认的用户名和用户密码,
用户名默认的不是root,而是debian-sys-maint

 

 

update mysql.user set authentication_string=PASSWORD('密码'), plugin='mysql_native_password' where user='root';

 

posted on 2020-02-27 20:39  肖建锋  阅读(184)  评论(0)    收藏  举报