2018年11月10日に開催された「FOSS4G 2018 Tokyo コアデイ」での発表資料です。
FOSS4G 2018 Tokyo コアデイ
https://www.osgeo.jp/events/foss4g-2018/foss4g-2018-tokyo/foss4g-2018-tokyo-coreday
16. Drupalのインストール
# yum -y install mysql* (repository指定)
# service mysqld start
rootユーザのパスワードを設定
# mysql -u root
mysql > set password for root@localhost('パスワード');
mysql > set password for root@localhost = password('パス
ワード');
mysql > quit
17. Drupalのインストール
rootユーザのログイン確認
# mysql -u root -p
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 5
Server version: 5.6.17 Source distribution
Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
!
mysql >
18. Drupalのインストール
rootユーザ以外を削除
mysql > use mysql;
mysql > select Host,User from user;
mysql > delete from user where User='';
mysql > delete from user where Host='xxxxx';
19. Drupalのインストール
mysql> create database drupal ;
Query OK, 1 row affected (0.00 sec)
DB「drupal」のユーザ「drupaluser」作成
mysql> grant all privileges on drupal.* to drupaluser@localhost
identified by 'drupalpass';
Query OK, 0 rows affected (0.00 sec)
終了
mysql> exit
Bye