Jump to content

"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~

Link to comment
https://forums.phpfreaks.com/topic/858-cannot-connect-to-database-help-needed/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.