MariaDB完全忽略了根密码

我刚刚在昨天下载的一个新的Ubuntu上安装了MariaDB(mysqld)。 然后我跑了脚本

/usr/bin/mysql_secure_installation 

并设置新的root密码并禁用无密码login。 然而,这不起作用,所以我尝试从命令行:

 root@www:~# mysqladmin password whatever root@www:~# mysql -uroot Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 35 Server version: 10.0.24-MariaDB-7 Ubuntu 16.04 Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> \q Bye root@www:~# root@www:~# mysql -uroot -plkasjfdklajsfd Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 38 Server version: 10.0.24-MariaDB-7 Ubuntu 16.04 Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> use mysql Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed MariaDB [mysql]> select Host , User, Password from user; +-----------+------+-------------------------------------------+ | Host | User | Password | +-----------+------+-------------------------------------------+ | localhost | root | *90837F291B744BBE86DF95A37D2B2524185DBBF5 | +-----------+------+-------------------------------------------+ 1 row in set (0.00 sec) 

为什么mysql忽略我的密码更改说明,更糟糕的是,它允许以root身份进行无密码login?