Solves an issue of hardwiring user/password in wordpress for database.
This commit is contained in:
+3
-3
@@ -20,13 +20,13 @@
|
||||
|
||||
// ** MySQL settings - You can get this info from your web host ** //
|
||||
/** The name of the database for WordPress */
|
||||
define('DB_NAME', 'wordpress');
|
||||
define('DB_NAME', getenv('MYSQL_DATABASE'));
|
||||
|
||||
/** MySQL database username */
|
||||
define('DB_USER', 'root');
|
||||
define('DB_USER', getenv('MYSQL_USER'));
|
||||
|
||||
/** MySQL database password */
|
||||
define('DB_PASSWORD', 'wordpress');
|
||||
define('DB_PASSWORD', getenv('WORDPRESS_DB_PASSWORD'));
|
||||
|
||||
/** MySQL hostname */
|
||||
define('DB_HOST', getenv('WORDPRESS_DB_HOST'));
|
||||
|
||||
Reference in New Issue
Block a user