Connecting to hotel error.
When I try to go to my hotel, I get this error:
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\Users\Administrator\Desktop\Habbo retro\xampp\htdocs\app\class.engine.php on line 48
MySQL Engine - RevCMS:
MySQL could not connect to host
Any help?
Line 48 of Class.engine.php
Code:
$this->connection = $this->mysql[$type]($_CONFIG['mysql']['hostname'], $_CONFIG['mysql']['username'], $_CONFIG['mysql']['password']);
Re: Connecting to hotel error.
Edit it... to your details?
Re: Connecting to hotel error.
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Users\Administrator\Desktop\Habbo retro\xampp\htdocs\app\class.engine.php on line 48
MySQL Engine - RevCMS:
MySQL could not connect to host
IS what I get after editing it with my details.
Re: Connecting to hotel error.
Well... It can't be configure correctly if the revcms cant connect to mysql make sure look everywheere in the configure file
Re: Connecting to hotel error.
I'm pretty sure everything in my config file is correct.
Re: Connecting to hotel error.
Have u set a password? localhost/security go there and setup a password.
Re: Connecting to hotel error.
I have set up a password 13rad.
Re: Connecting to hotel error.
Then go on localhost/phpmyadmin and type the password u might of put the wrong password.
Re: Connecting to hotel error.
I signed in correctly using the password. It's correct.
Re: Connecting to hotel error.
Is it correct in the config.php?
y dont u just use iis?
Re: Connecting to hotel error.
I followed a tutorial using Apache, I don't know how to use
IIS xD
Get this error when I go to my vps's ip now:
Index of /
cgi-bin/
Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 Server at 198.27.114.12 Port 80
Re: Connecting to hotel error.
I can setup IIs for u if u want pm me for my skype.
Re: Connecting to hotel error.
I don't have Skype, anything else?
Re: Connecting to hotel error.
Follow This Tutorial But u dont have to use the revcms and Phoneix emu he gives u.
Re: Connecting to hotel error.
Don't want to move to IIS right now, anyone else? :SS
Re: Connecting to hotel error.
The error is basicly wrong username/password
Re: Connecting to hotel error.
Put in the config for host: localhost
user: root
password: your password
Re: Connecting to hotel error.
HillBilly, I tried your method, it gave me a syntax error.
I tried doing it again, using my VPS's ip.
On my PC I get:
Oops! Google Chrome could not connect to ***.***.***.***
On my VPS I get:
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Users\Administrator\Desktop\Habbo retro\xampp\htdocs\app\class.engine.php on line 48
MySQL Engine - RevCMS:
MySQL could not connect to host
Re: Connecting to hotel error.
Seems like you have clearly no idea what you're doing.
Put your config here and replace your VPS ip if you want that...
Re: Connecting to hotel error.
I'm pretty new, and okay.
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 - Localhost, Hamachi IP, VPS or Dedi's IP
$_CONFIG['mysql']['username'] = 'root'; //Phpmyadmin username
$_CONFIG['mysql']['password'] = 'nope'; //Phpmyadmin password
$_CONFIG['mysql']['database'] = 'Pheonix'; //Phpmyadmin database name
$_CONFIG['mysql']['port'] = '3306'; //MySQL's port
/*
*
* Hotel management - All URLs do not end with an "/"
*
*/
$_CONFIG['hotel']['server_ip'] = 'nope'; //Localhost, Hamachi IP, VPS or Dedi's IP
$_CONFIG['hotel']['url'] = 'nope'; //URL to your hotel, does not end with a "/"
$_CONFIG['hotel']['name'] = 'RespHotel'; // Your Hotel's Name
$_CONFIG['hotel']['desc'] = 'RespHotel is a fun and enjoyable hotel.'; //Hotel's description
$_CONFIG['hotel']['email'] = 'b_smiley@live.com.au'; //Email for users to submit help requests to
$_CONFIG['hotel']['in_maint'] = false; //false for no maintenance mode & true for maintenance mode
$_CONFIG['hotel']['motto'] = 'I <3 ' . $_CONFIG['hotel']['name']; //Starting motto for new users
$_CONFIG['hotel']['credits'] = 15000; //How many coins new users get
$_CONFIG['hotel']['pixels'] = 7500; //How many pixels new users get
$_CONFIG['hotel']['figure'] = '-'; //Default figure users will register with.
$_CONFIG['hotel']['web_build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/527'; //Web_Build
$_CONFIG['hotel']['external_vars'] = 'http://localhost/r63/external_variables.txt'; //External Vars [Don't edit]
$_CONFIG['hotel']['external_texts'] = 'http://localhost/r63/external_flash_texts'; //External Flash Texts [Don't edit]
$_CONFIG['hotel']['product_data'] = 'http://localhost/r63/productdata.txt'; //Product Data [Don't edit]
$_CONFIG['hotel']['furni_data'] = 'http://localhost/r63/furnidata.txt'; //Furni Data [Don't edit]
$_CONFIG['hotel']['swf_folder'] = 'http://localhost/r63/swf'; //SWF Folder [Don't edit]
/*
*
* 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'] = 'Mango';
/*
*
* 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
?>
Re: Connecting to hotel error.
Are you sure the database name is Pheonix? As everything else seem to be correct.
Re: Connecting to hotel error.
I get this on Pheonix:
Screenshot by Lightshot
and this when I try and load from my pc:
Screenshot by Lightshot
Re: Connecting to hotel error.
Quote:
Originally Posted by
Smiley69
Put in your phoenix config 'localhost' as MySQL.Host.
Re: Connecting to hotel error.
Trying to connect via localhost on VPS:
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Users\Administrator\Desktop\Habbo retro\xampp\htdocs\app\class.engine.php on line 48
MySQL Engine - RevCMS:
MySQL could not connect to host