Jump to content

Archived

This topic is now archived and is closed to further replies.

maryp

"Cannot Connect to Database" Help needed

Recommended Posts

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~

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Thanks..I gave up on 2.0.6 ..deleted it and installed 2.0.3

It worked! :)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.