MariaDB [test001]> create user testuser identified by 'password';
Query OK, 0 rows affected (0.00 sec)
MariaDB [test001]> SELECT user, host FROM mysql.user;
+----------+-----------+
| user | host |
+----------+-----------+
| test001 | % |
| testuser | % |
| root | 127.0.0.1 |
| root | ::1 |
| root | localhost |
+----------+-----------+
5 rows in set (0.00 sec)
[test001@test-server ~]$ mysql -u testuser -ppassword
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 5293
Server version: 5.5.56-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>