Top > MariaDB > CentOS7
# yum install mariadb mariadb-server
#  vi /etc/my.cnf
[mysqld] の最後に
character-set-server=utf8
# systemctl enable mariadb.service
# systemctl start mariadb.service
mysql_secure_installation
mysql -u root -p
MariaDB [(none)]> select user,host,user from mysql.user;

ユーザ追加

# grant all on test.* to unix@localhost identified by 'password'

ユーザ削除

# MariaDB [(none)]> revoke all on test.* from unix@localhost;
# MariaDB [(none)]> delete from mysql.user where user like 'unix' and host like 'localhost';
# MariaDB [(none)]> flush privileges;

Reload   Diff   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes
Last-modified: Fri, 25 Dec 2015 02:46:02 JST (3039d)