webster2001 Posted April 20, 2008 Posted April 20, 2008 I get this error on the login page and the register page of my game. Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'webcn'@'localhost' (using password: YES) in /home/webcn/public_html/class/class_db_mysql.php on line 46 FATAL ERROR: Could not connect to database on localhost (Access denied for user 'webcn'@'localhost' (using password: YES)) Anyone have a idea what it could be. Thanks Quote
Zero-Affect Posted April 20, 2008 Posted April 20, 2008 Re: Please help.... yeah your info in your config.php wont match your actual info Quote
webster2001 Posted April 20, 2008 Author Posted April 20, 2008 Re: Please help.... Thanks, ill try that as soon as i get my cpanel pw back to me... i forgot it lol Quote
Zero-Affect Posted April 20, 2008 Posted April 20, 2008 Re: Please help.... ah yeah thats the problem then the password has been changed by your host and send via email or something? then the config file tries running old pw n fails to connect to the databases lol so when you get the new one just add it in config.php and you'll be fine mate, glad i could help Quote
webster2001 Posted April 20, 2008 Author Posted April 20, 2008 Re: Please help.... ah yeah thats the problem then the password has been changed by your host and send via email or something? then the config file tries running old pw n fails to connect to the databases lol so when you get the new one just add it in config.php and you'll be fine mate, glad i could help ive done that but when i click save on file edit for config.php i get this: File Saved open config.php failed: Permission denied at cpanel.pl line 590 Carp::croak('open config.php failed: Permission denied') called at /usr/local/cpanel/Cpanel/Fileman.pm line 1240 Cpanel::Fileman::fmsavefile('%2fhome%2fwebcn%2fpublic_html', 'config.php', '<?php^M^J$_CONFIG = array(^M^J\'hostname\' => \'localhost\',^M^J\'user...', 1, 1) called at cpanel.pl line 590 main::__ANON__('%2fhome%2fwebcn%2fpublic_html', 'config.php', '<?php^M^J$_CONFIG = array(^M^J\'hostname\' => \'localhost\',^M^J\'user...', 1, 1) called at cpanel.pl line 1763 main::exectag('<cpanel Fileman="fmsavefile($FORM{\'dir\'},$FORM{\'file\'},$FORM...') called at cpanel.pl line 4806 main::dotag(undef) called at cpanel.pl line 4673 main::cpanel_parseblock('SCALAR(0x919fa24)') called at cpanel.pl line 4625 main::cpanel_parse('GLOB(0x9406234)') called at cpanel.pl line 1295 [a fatal error or timeout occurred while processing this directive] Quote
Analog Posted April 20, 2008 Posted April 20, 2008 Re: Please help.... ive done that but when i click save on file edit for config.php i get this: File Saved open config.php failed: Permission denied at cpanel.pl line 590 Carp::croak('open config.php failed: Permission denied') called at /usr/local/cpanel/Cpanel/Fileman.pm line 1240 Cpanel::Fileman::fmsavefile('%2fhome%2fwebcn%2fpublic_html', 'config.php', '<?php^M^J$_CONFIG = array(^M^J\'hostname\' => \'localhost\',^M^J\'user...', 1, 1) called at cpanel.pl line 590 main::__ANON__('%2fhome%2fwebcn%2fpublic_html', 'config.php', '<?php^M^J$_CONFIG = array(^M^J\'hostname\' => \'localhost\',^M^J\'user...', 1, 1) called at cpanel.pl line 1763 main::exectag('<cpanel Fileman="fmsavefile($FORM{\'dir\'},$FORM{\'file\'},$FORM...') called at cpanel.pl line 4806 main::dotag(undef) called at cpanel.pl line 4673 main::cpanel_parseblock('SCALAR(0x919fa24)') called at cpanel.pl line 4625 main::cpanel_parse('GLOB(0x9406234)') called at cpanel.pl line 1295 [a fatal error or timeout occurred while processing this directive] Thats a server problem it looks like... Quote
webster2001 Posted April 20, 2008 Author Posted April 20, 2008 Re: Please help.... ive done that but when i click save on file edit for config.php i get this: File Saved open config.php failed: Permission denied at cpanel.pl line 590 Carp::croak('open config.php failed: Permission denied') called at /usr/local/cpanel/Cpanel/Fileman.pm line 1240 Cpanel::Fileman::fmsavefile('%2fhome%2fwebcn%2fpublic_html', 'config.php', '<?php^M^J$_CONFIG = array(^M^J\'hostname\' => \'localhost\',^M^J\'user...', 1, 1) called at cpanel.pl line 590 main::__ANON__('%2fhome%2fwebcn%2fpublic_html', 'config.php', '<?php^M^J$_CONFIG = array(^M^J\'hostname\' => \'localhost\',^M^J\'user...', 1, 1) called at cpanel.pl line 1763 main::exectag('<cpanel Fileman="fmsavefile($FORM{\'dir\'},$FORM{\'file\'},$FORM...') called at cpanel.pl line 4806 main::dotag(undef) called at cpanel.pl line 4673 main::cpanel_parseblock('SCALAR(0x919fa24)') called at cpanel.pl line 4625 main::cpanel_parse('GLOB(0x9406234)') called at cpanel.pl line 1295 [a fatal error or timeout occurred while processing this directive] Thats a server problem it looks like... Nop i managed to fix it click home then change the permissions of index_html to 0777 i think did it. Quote
fbiss Posted April 22, 2008 Posted April 22, 2008 Re: Please help.... webster2001 , please be more carefull to post topics in the correct category. *moving topic* Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.