Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old August 28th, 2009, 11:29 AM
help me please help me please is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 7 help me please User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 13 sec
Reputation Power: 0
SQL - Fatal error

[COLOR=Red][B][FONT=Comic Sans MS]FATAL ERROR: Could not connect to database on localhost (Access denied for user 'user'@'localhost' (using password: YES))

I have been trying to install this mccodes stuff to make an rpg for days. I keep getting this error... please help me figure out what I'm doing wrong.
I took a screen capture but this forum will not allow me to post the url. I'll be glad to give a link to the screenshot.

Reply With Quote
  #2  
Old August 28th, 2009, 12:01 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1,937 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 5 Days 1 h 54 m 18 sec
Reputation Power: 4
do you have a database installed? have you changed the database password? have you entered that password in the script you are trying to run?

Reply With Quote
  #3  
Old August 28th, 2009, 12:42 PM
help me please help me please is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 7 help me please User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 13 sec
Reputation Power: 0
Quote:
Originally Posted by IAmALlama
do you have a database installed? have you changed the database password? have you entered that password in the script you are trying to run?


I bought my domain, I uploaded everything to the public folder, I installed the database, I ran the installer.php , I added users for the mysql, half way through the installer.php, I got that error code.

Reply With Quote
  #4  
Old August 28th, 2009, 12:46 PM
help me please help me please is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 7 help me please User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 13 sec
Reputation Power: 0
I would send a screen shot, but since I'm a noob to these forums it will not allow it.

Reply With Quote
  #5  
Old August 28th, 2009, 02:47 PM
help me please help me please is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 7 help me please User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 13 sec
Reputation Power: 0
more info on my problem

I've thought about it, and perhaps I am not giving enough information... Let me try to improve on that.

Mccodes Version 2
Installer
1. Diagnostics >> 2. Configuration >> 3. Installation & Extras
Basic Diagnostic Results:
PHP version >= 4.2.0 OK
Game folder writable OK
MySQL support in PHP present OK
Game installed at root level of domain or subdomain OK

1. Diagnostics >> 2. Configuration >> 3. Installation & ExtrasWrite Config...
Config written.
Attempting DB connection

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'user'@'localhost' (using password: YES) in /home/weedtax1/public_html/class/class_db_mysql.php on line 46
FATAL ERROR: Could not connect to database on localhost (Access denied for user 'user'@'localhost' (using password: YES))

Reply With Quote
  #6  
Old August 28th, 2009, 02:52 PM
help me please help me please is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 7 help me please User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 13 sec
Reputation Power: 0
lines 36-49 of class_db_mysql.php

function connect()
{
if(!$this->host) { $this->host="localhost"; }
if(!$this->user) { $this->user="root"; }
if($this->persistent)
{
$this->connection_id=mysql_pconnect($this->host, $this->user, $this->pass) or $this->connection_error();
}
else
{
$this->connection_id=mysql_connect($this->host, $this->user, $this->pass, 1) or $this->connection_error();
}
mysql_select_db($this->database, $this->connection_id);
return $this->connection_id;[highlight]

Reply With Quote
  #7  
Old August 28th, 2009, 05:33 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1,937 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 5 Days 1 h 54 m 18 sec
Reputation Power: 4
then the password or user for the database is incorrect. Double check things like spelling and case. make sure you look for an install text or readme and follow those instructions. look for a config file and make sure that the username and password for the database is in there and correct.

Reply With Quote
  #8  
Old August 28th, 2009, 10:27 PM
help me please help me please is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 7 help me please User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 13 sec
Reputation Power: 0
I have checked that the user and pass are correct. I have since deleted the database and made a new one, checking once again to make sure that the user name and pass are correct, and they are. I have no submitted a support ticket to my host, to see if they can help me.

Reply With Quote
  #9  
Old August 29th, 2009, 12:08 AM
help me please help me please is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 7 help me please User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 13 sec
Reputation Power: 0
Thank you very much for your assistance.

After contacting my Host, they showed me the error of my ways. ha. The user name was preceded by their very own method, of which they had not informed me. I have succeeded in accessing the database and this thread can be closed. Thanks again, and a +1 to you.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > SQL - Fatal error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek