$ mysql --version mysql Ver 8.0.27-0ubuntu0.21.04.1 for Linux on x86_64 ((Ubuntu)) [t]2022-01-18 09:18:15
関連するかも情報
$ dpkg -l | grep mysql | col | cut -f 1 ii mysql-client-8.0 ii mysql-client-core-8.0 ii mysql-common ii mysql-server ii mysql-server-8.0 ii mysql-server-core-8.0 [t]2022-01-18 09:17:51
$ mysql --version mysql Ver 8.0.27-0ubuntu0.21.04.1 for Linux on x86_64 ((Ubuntu)) [t]2022-01-18 09:18:15
もしかして mysqld.service は要らなかった?
$ sudo systemctl status mysql ● mysql.service - MySQL Community Server [t]2022-01-18 09:19:15
そっか、パスワード不要だったか。
$ sudo mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 8.0.27-0ubuntu0.21.04.1 (Ubuntu) [t]2022-01-18 09:21:17