[root@MySQLmysql]# mysql -u root -p
Enterpassword:
Welcometo the MariaDB monitor. Commands endwith ; or \g.
YourMariaDB connection id is 6
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.
#创建wordpress数据库
MariaDB[(none)]> create schema wpdb;
Query OK,1 row affected (0.00 sec)
#设置wordpress权限
MariaDB[(none)]> grant all on wpdb.* to 'wpadmin'@'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)]> \q