[root@controller ~]# mysql -uroot -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 11 Server version: 10.1.20-MariaDB MariaDB Server 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)]>
neutron。
MariaDB [(none)]> CREATE DATABASE neutron; Query OK, 1 row affected (0.00 sec)
neutron 有全部的存取權。
MariaDB [(none)]> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \ IDENTIFIED BY '123qwe'; Query OK, 0 rows affected (0.00 sec)
neutron 有全部的存取權。
MariaDB [(none)]> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' \ IDENTIFIED BY '123qwe'; Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit Bye