- 查看初始登录密码
sudo cat -n /etc/mysql/debian.cnf
1 # Automatically generated for Debian scripts. DO NOT TOUCH!
2 [client]
3 host = localhost
4 user = debian-sys-maint
5 password = p6OUNvUoUrxSvkh8
6 socket = /var/run/mysqld/mysqld.sock
7 [mysql_upgrade