directus db 2
This commit is contained in:
parent
15e2b819a2
commit
ea5ae902bb
|
@ -139,9 +139,9 @@ if [[ "$answer" == "y" ]]; then
|
||||||
read -s db_directus_password
|
read -s db_directus_password
|
||||||
echo
|
echo
|
||||||
mysql -u root -p <<EOF
|
mysql -u root -p <<EOF
|
||||||
CREATE USER 'directus'@'localhost' IDENTIFIED BY '${db_password}';
|
CREATE USER 'directus'@'localhost' IDENTIFIED BY '${db_password}';
|
||||||
CREATE DATABASE directus;
|
CREATE DATABASE directus;
|
||||||
GRANT ALL PRIVILEGES ON directus.* TO 'directus'@'localhost' IDENTIFIED BY '${db_password}';
|
GRANT ALL PRIVILEGES ON directus.* TO 'directus'@'localhost' IDENTIFIED BY '${db_password}';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue