mami3インストール

MariaDB を入れる。

[root@mami sekigawa]# yum -y install centos-release-scl-rh centos-release-scl
[root@mami sekigawa]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-SCLo-scl.repo
[root@mami sekigawa]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
 
[root@mami sekigawa]# yum --enablerepo=centos-sclo-rh -y install rh-mariadb102-mariadb-server
[root@mami sekigawa]# scl enable rh-mariadb102 bash
 
[root@mami sekigawa]# vi /etc/profile.d/rh-mariadb102.sh
 #!/bin/bash
 
 source /opt/rh/rh-mariadb102/enable
 export X_SCLS="`scl enable rh-mariadb102 'echo $X_SCLS'`"
 
[root@mami sekigawa]# vi /etc/opt/rh/rh-mariadb102/my.cnf.d/mariadb-server.cnf
 character-set-server=utf8
 
[root@mami sekigawa]# systemctl start rh-mariadb102-mariadb
[root@mami sekigawa]# systemctl enable rh-mariadb102-mariadb
[root@mami sekigawa]# mysql_secure_installation

root 以外の特権ユーザーを設定する。

[root@mami sekigawa]# mysql -u root -p
 MariaDB [(none)]> grant all privileges on *.* to sekigawa@localhost identified by 'password';
 MariaDB [(none)]> select user from mysql.user where user='sekigawa';
 MariaDB [(none)]> show databases;

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS