module(wp): attempt for local unix socket connection

This commit is contained in:
Raito Bezarius 2021-11-22 23:17:57 +01:00
parent e6f653f28a
commit 3160de54ec
2 changed files with 2 additions and 4 deletions

View file

@ -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_";
});

View file

@ -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}';