Update init
This commit is contained in:
6
init
6
init
@@ -43,9 +43,9 @@ sudo systemctl enable --now mariadb
|
||||
printf "$DB_PASSWORD\nn\nY\n$DB_PASSWORD\n$DB_PASSWORD\nY\nY\nY\nY\n" | sudo mariadb-secure-installation
|
||||
|
||||
sudo mysql <<EOF
|
||||
CREATE DATABASE wordpress;
|
||||
CREATE USER 'wordpress'@'localhost' IDENTIFIED BY '$DB_PASSWORD';
|
||||
GRANT ALL PRIVILEGES ON wordpress.* TO '$DB_USER'@'localhost';
|
||||
CREATE DATABASE $DB_NAME;
|
||||
CREATE USER '$DB_NAME'@'localhost' IDENTIFIED BY '$DB_PASSWORD';
|
||||
GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'localhost';
|
||||
EOF
|
||||
|
||||
# WordPress
|
||||
|
||||
Reference in New Issue
Block a user