Add a variable to facilitate the use of an external MySQL database.

This commit is contained in:
Andrea Dell'Amico 2018-04-11 18:07:28 +02:00
parent 00b96d485e
commit 10cdbfd5b5
2 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,8 @@ wordpress_local_mysql: True
wordpress_db_name: wp_db
wordpress_db_user: wp_user
# If you change that, you must set the wordpress_local_mysql variable to False
wordpress_db_host: localhost
wordpress_db_table_prefix: 'mywp_'
# wordpress_db_pwd: 'use a vault file'

View File

@ -2,7 +2,7 @@
define("DB_NAME", "{{ wordpress_db_name }}");
define("DB_USER", "{{ wordpress_db_user }}");
define("DB_PASSWORD", "{{ wordpress_db_pwd }}");
define("DB_HOST", "localhost");
define("DB_HOST", "{{ wordpress_db_host }}");
define("DB_CHARSET", "utf8");
define("DB_COLLATE", "");