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

7 lines
268 B
Bash

#!/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