| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Apr 2006
Posts: 300
![]() | PhP error in site I get this when i try to connect to my site Warning: mysql_connect(): Access denied for user: 'nobody@localhost' (Using password: NO) in /home/boom3/public_html/includes/connect.inc.php on line 12
__________________ Xenf.com -Gain Ranking, Traffic & Profit By Purchasing 5,000 Premium Links |
| |
| | #2 (permalink) |
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | the user you specified is not priveleged to use the database and/or you forgot the username_ before your actual db username and db password. solution: give the user access to the database you assigned to it and name your dbname/dbusername with this cpanelusername_databasename and cpanelusername_databaseusername |
| |
| | #4 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | yes as weblord suggests it does in favct look like you have not used a username and password at all in the script so it is not using any values at all when connecting (hence why it shows as nobody@localhost) |
| |
| | #5 (permalink) |
| Senior Member Join Date: Aug 2005 Location: United Kindom
Posts: 1,502
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | This code may help just replace the values in caps. PHP Code: |
| |
| | THREAD STARTER #6 (permalink) |
| NamePros Regular Join Date: Apr 2006
Posts: 300
![]() | Thanks everyone, you all seem very proficient in PhP. I have a very big project that i will need to hire one of you to help me on.
__________________ Xenf.com -Gain Ranking, Traffic & Profit By Purchasing 5,000 Premium Links |
| |