Open main menu

CDOT Wiki β

Changes

OPS705 Assignment 2

No change in size, 21:31, 29 March 2023
m
Adding Database Connector Info as Environment Variables
=== Adding Database Connector Info as Environment Variables ===
[[Image:Ops705_a2_wp-config-example.png|thumb|right|350px450px|Figure 1: Adding database connector information to ''wp-config.php''.]]
In this file (wp-config.php), you will be adding database connector information as '''environment variables''', not the actual connector information. (We'll add that information later.) Find the following lines and add the bolded values:
# define('DB_NAME', '''getenv('DB_NAME'))''';