We need to tell PHP-Nuke where to get its data from, and how to get that data. This requires us to provide the name of the database and the database user we just created. We add this information into the config.php
file located in the html
folder of your PHP-Nuke installation.
To do this, open the config.php
file in your favorite text editor (Notepad or Wordpad will do fine).
Scroll down to find these five consecutive lines:
$dbuname = "root "; $dbpass = ""; $dbname = "nuke"; $prefix = "nuke"; $user_prefix = "nuke";
These five lines are PHP variable definitions that determine the username and password of the database user account that will access the database, and the name of the database that we will be accessing, and the table name prefix. PHP-Nuke uses these to connect to its database, so they had better be correct.
The first thing we will do is change the database username and database password to those of the database user we created earlier. Edit the lines as follows...