Jump to content


Photo

"Cannot Connect to Database" Help needed


  • Please log in to reply
2 replies to this topic

#1 maryp

maryp
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 09 August 2003 - 01:10 PM

Here is a copy and paste of an ongoing session on the HotRocket help forum. I am trying to install Php onto my site.
I keep getting \"cannot connect to database\"
Can\'t figure out what I\'m doing wrong.
**************************************

I did create a database.
I did assign a user
I did add colinfa_ before both in the config

I put database type as MySQL 3x
..when I do that I just get \"cannot connect to database
When I put type as MySQL 4x
..then I get this error


quote:
--------------------------------------------------------------------------------
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/colinfa/public_html/phpBB2/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/colinfa/public_html/phpBB2/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database
--------------------------------------------------------------------------------


I put server hostname as localhost

For Admin login and password I used my
HostRocket name and password..is that correct?


08-08-2003 05:41 PM

JohnSchubert
Senior Customer

Have you tried the name and password for the user you created (rather than the one for HostRocket)?? If not, give that a try.

I keep the database passwords different than the HR login name and passwords for security reasons. If someone looks at your php.config file they now have your account password. Just a FYI.

John


08-08-2003 05:46 PM

My user name and passwords for HR login and database are different..
I\'ll try using the database one in the two different areas.

************
Ok..tried that..still \"cannot connect\"

any suggestions appreciated! I\'m stumped!
~mary~

#2 pesoto74

pesoto74
  • Members
  • Pip
  • Newbie
  • 1 posts

Posted 11 August 2003 - 03:25 AM

It looks like you are getting this error as part of trying to install phpBB. If that is so then it might be better for purposes of finding out about he connection problem to make just a simple connection script and try to find the problem from that.

#3 maryp

maryp
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 11 August 2003 - 11:19 AM

Thanks..I gave up on 2.0.6 ..deleted it and installed 2.0.3
It worked! :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users