root@raspberrypi:~ # sudo mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. YourMariaDB connection id is296 Server version: 10.5.15-MariaDB-0+deb11u1 Debian11
Copyright (c) 2000, 2018, Oracle, MariaDBCorporationAb and others.
Type'help;' or '\h'for help. Type'\c' to clear the curren t input statement.
MariaDB [(none)]> alter user 'root'@'localhost' identified b y 'Your_Password_Here'; Query OK, 0 rows affected (0.004 sec)