maryp Posted August 9, 2003 Share Posted August 9, 2003 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~ Quote Link to comment https://forums.phpfreaks.com/topic/858-cannot-connect-to-database-help-needed/ Share on other sites More sharing options...
pesoto74 Posted August 11, 2003 Share Posted August 11, 2003 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. Quote Link to comment https://forums.phpfreaks.com/topic/858-cannot-connect-to-database-help-needed/#findComment-2884 Share on other sites More sharing options...
maryp Posted August 11, 2003 Author Share Posted August 11, 2003 Thanks..I gave up on 2.0.6 ..deleted it and installed 2.0.3 It worked! Quote Link to comment https://forums.phpfreaks.com/topic/858-cannot-connect-to-database-help-needed/#findComment-2890 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.