From fad654375fa7d83cd5dde1504692c2535affc843 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Mon, 16 Oct 2023 22:43:10 +0200 Subject: [PATCH] separate db server --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 373caf5..c9b0c8b 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,15 @@ template and Advanced Custom Fields settings. Steps: - install `php` and `php-mysql` -- First you have to setup a database, e.g. for MariaDB/MySQL (substituting `$WORDPRESS_DB_USER`, `$db`, `$password`): +- First you have to setup a database on the db server, e.g. for MariaDB/MySQL (substituting `$WORDPRESS_DB_USER`, `$db`, `$password`, `$server`): - ```sql - CREATE USER '$WORDPRESS_DB_USER'@'localhost' IDENTIFIED BY '$password'; + CREATE USER '$WORDPRESS_DB_USER'@'$server.internal.bij1.net' IDENTIFIED BY '$password'; FLUSH PRIVILEGES; DROP DATABASE IF EXISTS $db; CREATE DATABASE $db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - GRANT ALL PRIVILEGES ON $db.* TO '$WORDPRESS_DB_USER'@'localhost'; + GRANT ALL PRIVILEGES ON $db.* TO '$WORDPRESS_DB_USER'@'$server.internal.bij1.net'; ``` -- Put the files here where you want to install WordPress, and navigate there. +- Put the files from this repo where you want to install WordPress, and navigate there. - Start the installer by running `sudo bash ./install.sh`. - Note down the `bij1admin` password that's generated during installation. - Tweak the BIJ1 specific settings in `wp-config.php`.