[root@MySQLmysql]# mysql -u root -p
Enterpassword:
Welcometo the MariaDB monitor. Commands endwith ; or \g.
YourMariaDB connection id is 55
Serverversion: 10.0.10-MariaDB-log MariaDB Server
Copyright(c) 2000, 2014, Oracle, SkySQL Ab and others.
Type'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB[(none)]> create schema bbsdb;
Query OK,1 row affected (0.00 sec)
MariaDB[(none)]> grant all on bbsdb.* to 'bbsadmin'@'172.16.%.%' identified by'oracle';
Query OK,0 rows affected (0.00 sec)
MariaDB[(none)]> flush privileges;
Query OK,0 rows affected (0.00 sec)
MariaDB[(none)]> show databases;
+--------------------+
|Database |
+--------------------+
|bbsdb |
|information_schema |
|mysql |
|performance_schema |
|test |
|wpdb |
+--------------------+
6 rows inset (0.00 sec)
MariaDB[(none)]> \q