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
|
||||
echo
|
||||
mysql -u root -p <<EOF
|
||||
CREATE USER 'directus'@'localhost' IDENTIFIED BY '${db_password}';
|
||||
CREATE DATABASE directus;
|
||||
GRANT ALL PRIVILEGES ON directus.* TO 'directus'@'localhost' IDENTIFIED BY '${db_password}';
|
||||
FLUSH PRIVILEGES;
|
||||
CREATE USER 'directus'@'localhost' IDENTIFIED BY '${db_password}';
|
||||
CREATE DATABASE directus;
|
||||
GRANT ALL PRIVILEGES ON directus.* TO 'directus'@'localhost' IDENTIFIED BY '${db_password}';
|
||||
FLUSH PRIVILEGES;
|
||||
EOF
|
||||
fi
|
Loading…
Reference in New Issue