module(wp): attempt for local unix socket connection
This commit is contained in:
parent
e6f653f28a
commit
3160de54ec
2 changed files with 2 additions and 4 deletions
|
@ -44,9 +44,9 @@ in lib.makeExtensible (self: {
|
|||
dbConfig = lib.makeExtensible (innerSelf: {
|
||||
isLocal = true; # if `true`, MySQL will be installed on the server.
|
||||
name = "wordpress"; # database name
|
||||
user = "root";
|
||||
user = "wordpress";
|
||||
password = "";
|
||||
host = "localhost";
|
||||
host = "localhost:/var/run/mysqld/mysqld.sock";
|
||||
charset = "utf8mb4";
|
||||
tablePrefix = "wp_";
|
||||
});
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
${secrets}
|
||||
|
||||
define('DB_NAME', '${dbConfig.name}');
|
||||
define('DB_USER', '${dbConfig.user}');
|
||||
define('DB_PASSWORD', '${dbConfig.password}');
|
||||
define('DB_HOST', '${dbConfig.host}');
|
||||
define('DB_CHARSET', '${dbConfig.charset}');
|
||||
$table_prefix = '${dbConfig.tablePrefix}';
|
||||
|
|
Loading…
Reference in a new issue