Ubuntu 18.04 安装MySQL初始密码问题

问题描述

Ubuntu 18.04上安装MySQL时未显示提示输入密码界面,安装好后无从登录。

TroubleShooting

经搜索后发现,原来在文件/etc/mysql/debian.cnf中配置了一个debian-sys-maint用户,这个用户只有DebianUbuntu才有。使用该用户登录就可以重设密码。

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s