mysql> set password for 'root'@'localhost' = 'new password';
Query OK, 0 rows affected, 1 warning (0.06 sec)
</pre>
*クライアントからログイン
**sudo しないとERROR 1698 (28000): Access denied エラー
<pre>
iroto@jinmu:/etc/mysql$ mysql -u root -p
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
piroto@jinmu:/etc/mysql$ sudo mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 8.0.21-0ubuntu0.20.04.4 (Ubuntu)
mysql>
</pre>