Error With IIS?

Derpec

Retrosetups.com | Professional, Reliable, Setups
Feb 21, 2012
658
92
MySQL Engine - RevCMS:
MySQL could not connect to databaseI have PHP Installed IIS Installed And MYSQL Installed So I Do Not Know Whats Wrong
 

Derpec

Retrosetups.com | Professional, Reliable, Setups
Feb 21, 2012
658
92
Code:
<?php
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
#Please fill this all out.
 
#NOTE: To set up TheHabbos.ORG's API go to wwwroot/mysite/thehabbos_api for IIS, OR, htdocs/thehabbos_api for XAMPP and others.
 
/*
*
*    MySQL management
*
*/
 
$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.
 
$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host
 
$_CONFIG['mysql']['username'] = 'root'; //MySQL username
 
$_CONFIG['mysql']['password'] = ''; //MySQL password
 
$_CONFIG['mysql']['database'] = 'phoenix'; //MySQL database
 
$_CONFIG['mysql']['port'] = '3306'; //MySQL's port
 
/*
*
*    Hotel management  - All URLs do not end with an "/"
*
*/
 
$_CONFIG['hotel']['server_ip'] = '127.0.0.1'; //IP of VPS/DEDI/etc
 
$_CONFIG['hotel']['url'] = 'http://localhost'; //Does not end with a "/"
 
$_CONFIG['hotel']['name'] = 'Habbo'; // Hotel's name
 
$_CONFIG['hotel']['desc'] = 'Best hotel around!'; //Hotel's description
 
$_CONFIG['hotel']['email'] = '[email protected]'; //Where the help queries from users are emailed to.@Priv skin
 
$_CONFIG['hotel']['in_maint'] = false; //False if hotel is NOT in maintenance. True if hotel IS in maintenance
 
$_CONFIG['hotel']['motto'] = 'I <3 ' . $_CONFIG['hotel']['name']; //Default motto users will register with.
 
$_CONFIG['hotel']['credits'] = 5000; //Default number of credits users will register with.
 
$_CONFIG['hotel']['pixels'] = 10000; //Default number of pixels users will register with.
 
$_CONFIG['hotel']['figure'] = 'hr-100.hd-190-7.ch-210-66.lg-270-82.sh-290-80'; //Default figure users will register with.
 
$_CONFIG['hotel']['web_build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/747'; //Web_Build
 
$_CONFIG['hotel']['external_vars'] = 'http://localhost/gordon/external_variables.txt'; //URL to your external vars
 
$_CONFIG['hotel']['external_texts'] = 'http://localhost/gordon/external_flash_texts.txt'; //URL to your external texts
 
$_CONFIG['hotel']['product_data'] = 'http://localhost/gordon/productdata.txt'; //URL to your productdata
 
$_CONFIG['hotel']['furni_data'] = 'http://localhost/gordon/furnidata.txt'; //URL to your furnidata
 
$_CONFIG['hotel']['swf_folder'] = 'http://inferno-hotel.no-ip.org/gordon/swf'; //URL to your SWF folder(does not end with a '/')
 
/*
*
*    Templating management - Pick one of our default styles or make yours by following our examples!
*
*/
 
#RevCMS has 2 default styles, 'Mango' by dannyy94 and 'Priv' by joopie - Others styles are to come, such as RastaLulz's ProCMS style and Nominal's PhoenixCMS 4.0 style.
 
$_CONFIG['template']['style'] = 'Habbo';
 
/*
*
*    Other topsites.. thing
*
*/
 
$_CONFIG['thehabbos']['username'] = 'Kryptos';
$_CONFIG['retro_top']['user'] = 'Kryptos';
 
/*
*
*    Recaptcha management - Fill the information below if you have one, else leave it like that and don't worry, be happy.
*
*/
 
$_CONFIG['recaptcha']['priv_key'] = '6LcZ58USAAAAABSV5px9XZlzvIPaBOGA6rQP2G43';
$_CONFIG['recaptcha']['pub_key'] = '6LcZ58USAAAAAAQ6kquItHl4JuTBWs-5cSKzh6DD';
 
 
/*
*
*    Social Networking stuff
*
*/
 
$_CONFIG['social']['twitter'] = 'TwitterAccount'; //Hotel's Twitter account
 
$_CONFIG['social']['facebook'] = 'FacebookAccount'; //Hotel's Facebook account
 
?>
 

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,808
679
Where it says :
Code:
$_CONFIG['mysql']['password'] = ''; //MySQL password
You must fill your password.
So it should look like this:
Code:
$_CONFIG['mysql']['password'] = 'blahblahblahmypassword'; //MySQL password
 

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,808
679
Well, If it says "MySQL could not connect to database" so, That is a MySQL problem, Not an IIS problem. Unless you did something wrong in connecting IIS with Localhost
 

Derpec

Retrosetups.com | Professional, Reliable, Setups
Feb 21, 2012
658
92
Well I have not gone to the phpmyadmin yet and added it but for some reason i cannot connect to it let me try it again
 

Users who are viewing this thread

Top