Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 05-10-2006, 11:52 AM
MikeinSC MikeinSC is offline
Hatchling Croc
 
Join Date: Apr 2006
Posts: 18
Default Followup Question Regarding a PHP site - Install.php Problem

Okay, thanks to Chaloupe, I was able to move forward and modify my config.php file to match the mysql database I created. Now, the second problem I ran into was trying to create the tables with the install.php file. After uploading the contents of the site, I then ran the following from the web browser:

www.mydomainname.com/install.php

The following error was received:

------------------------------
Warning: mysql_connect(): Access denied for user 'mysite_myusername_'@'localhost' (using password: YES) in /home/mysite/public_html/practicesite/install.php on line 6
Access denied for user 'mysite_myusername'@'localhost' (using password: YES)
------------------------

Do I need to modify the install.php file? Any ideas on this?

Thanks,

Mike
Reply With Quote
  #2  
Old 05-10-2006, 12:22 PM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,073
Default Re: Followup Question Regarding a PHP site - Install.php Problem

Quote:
Originally Posted by MikeinSC
Do I need to modify the install.php file? Any ideas on this?
Make sure the username and password are right and that the user was added to the database.
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #3  
Old 05-10-2006, 12:33 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,475
Default Re: Followup Question Regarding a PHP site - Install.php Problem

There are always 5 things regarding databases you have to check:

1. database host, in HostGator it's "localhost".
2. database name, it will always be <username>_<databasename>, i.e. if your username is "tester" and you create a database "db", the actual database name will be "tester_db".
3. database user, the naming is the same as above, and many times database name and database user are the same.
4. database user's password, whatever string (just don't make it too easy to guess).
5. database user must have access to the database (usually all rights).
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #4  
Old 05-10-2006, 12:41 PM
MikeinSC MikeinSC is offline
Hatchling Croc
 
Join Date: Apr 2006
Posts: 18
Default Re: Followup Question Regarding a PHP site - Install.php Problem

Okay...I think I am getting closer. Thanks to Serra and Finn for their help.

I think I was able to get the tables to install. However, I did run into a message:

No database selected at row 15

Not sure what this means. Thoughts?

Thanks,

Mike
Reply With Quote
  #5  
Old 05-10-2006, 12:52 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,475
Default Re: Followup Question Regarding a PHP site - Install.php Problem

Quote:
Originally Posted by MikeinSC
Okay...I think I am getting closer. Thanks to Serra and Finn for their help.

I think I was able to get the tables to install. However, I did run into a message:

No database selected at row 15

Not sure what this means. Thoughts?

Thanks,

Mike
It'd be much easier if we saw the row 15
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #6  
Old 05-10-2006, 01:34 PM
MikeinSC MikeinSC is offline
Hatchling Croc
 
Join Date: Apr 2006
Posts: 18
Default Re: Followup Question Regarding a PHP site - Install.php Problem

Finn...not a problem. I will be more than happy to show you. Where on my server would I find that information? I am only on the Baby Croc plan. Would I still be able to find that info?

Thanks,

Mike
Reply With Quote
  #7  
Old 05-10-2006, 01:39 PM
MikeinSC MikeinSC is offline
Hatchling Croc
 
Join Date: Apr 2006
Posts: 18
Default Re: Followup Question Regarding a PHP site - Install.php Problem

Okay...I went in to the PHPAdmin area and pulled up the database I created. There are no tables created. So, getting back to my error, do I look in the install.php on row 15, or, in the database itself?

Thanks,

Mike
Reply With Quote
  #8  
Old 05-11-2006, 11:33 AM
Junko Junko is offline
Hatchling Croc
 
Join Date: May 2006
Posts: 1
Default Re: Followup Question Regarding a PHP site - Install.php Problem

Might be script error?? Sometimes it can be..

Try to upload again. It works for me tho
Reply With Quote
  #9  
Old 05-11-2006, 03:41 PM
GatorDaveM
HostGator Guest
 
Posts: n/a
Default Re: Followup Question Regarding a PHP site - Install.php Problem

Mike,

It sounds as if it's a code issue based on the error received: i.e. it isn't properly working.

I'd recommend contacting the developers of the script for further information!
Reply With Quote
  #10  
Old 05-12-2006, 06:52 AM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,073
Default Re: Followup Question Regarding a PHP site - Install.php Problem

Quote:
Originally Posted by MikeinSC

No database selected at row 15
Normally, this means that you are doing a select query without specifing a database with a select command. (sounds oddly like a non answer). Look at mysql_select_db
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 02:50 AM.