MariaDB root@(none):mysql> show grants for 'dywang'@'localhost'; +----------------------------------------------------------------------------------+ | Grants for dywang@localhost | +----------------------------------------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO `dywang`@`localhost` IDENTIFIED BY PASSWORD '*06' | +----------------------------------------------------------------------------------+ 1 row in set Time: 0.050s
MariaDB root@(none):mysql> quit; Goodbye!
[root@kvm3 ~]# mariadb -udywang ERROR 1045 (28000): Access denied for user 'dywang'@'localhost' (using password: NO)
[root@kvm3 ~]# mariadb -udywang -p123qwe Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 22 Server version: 10.5.16-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> quit Goodbye