You don't need to use the same database credentials that you use on your main server.
I just tried to install phpNuke and had some wierd results. I will go through them so you might get some ideas of what to do for your situation.
http://localhost/np/admin.php is the url used in all cases below.
1. I created a database, imported the nuke.sql and entered the details in config.php:
- Code: Select all
$dbhost = "localhost";
$dbuname = "np";
$dbpass = "pn";
$dbname = "np";
$prefix = "np";
$user_prefix = "np";
$dbtype = "MySQL";
$sitekey = "SStgF54$3@+%288-982%/(-derThsR-23";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$nuke_editor = 1;
This netted me a blank page with no errors but nothing on the page either.
2. I didn't create a database and didn't change the default config.php
- Code: Select all
$dbhost = "localhost";
$dbuname = "root";
$dbpass = "";
$dbname = "nuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SStgF54$3@+%288-982%/(-derThsR-23";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$nuke_editor = 1;
This netted me the same error you have above:
There seems to be a problem with the MySQL server, sorry for the inconvenience.
We should be back shortly.
So now I understood that if there was a database connection issue then I would get this error message.
3. I created a database, imported the nuke.sql and using the info in the default config.php but only added my root password.
Root and its password has full priveleges as set up when XAMPP was installed. I left everything else the defaults.
- Code: Select all
$dbhost = "localhost";
$dbuname = "root";
$dbpass = "myrootpasswordinhere";
$dbname = "nuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SStgF54$3@+%288-982%/(-derThsR-23";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$nuke_editor = 1;
Finally at last I had the database connection I needed and therefore the admin.php was displayed as intended.
Your error is showing that you don't have a database connection. So I suggest doing Number 3 above and see if you get the same results that I had. Then you can experiment with changing the database details and reflecting them in your config.php till you are still able to connect and dispaly the pages you want to.
I hope you can follow this. Read it a few times if it seems complex.
Good Luck.