hpc-cloud/roles/keystone/scripts/initialize_db.sh

7 lines
268 B
Bash
Raw Normal View History

#!/bin/bash
mysql -uroot -pgeheim --host 127.0.0.1 << EOF
CREATE DATABASE IF NOT EXISTS keystone;
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'keystone';
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'keystone';
EOF