Unable to connect to database
Posted by: crowden (---.dhcp.embarqhsd.net)
Date: June 20, 2007 11:13PM

Hi,

This is kind of odd. I have 4 sites on my WAMP running. 3 of them work just fine, but the fourth (and newest) gives me an Unable to Connect to Database errror.

I used to mysql_select_db('dbname') or die ("Could not connect to database"winking smiley;

My permissions are correct as I'm connecting to MySql just fine. I've copied and pasted the database name over and over, so it is correct.

Is there a limit on how many sites can be running or connecting to MySQL?

Thanks for any answers.

Options: ReplyQuote
Re: Unable to connect to database
Posted by: CyberSpatium (71.237.217.---)
Date: June 21, 2007 01:35PM

it is impossible to tell what is going wrong with "Could not connect to database" custom error message instead using php default error message. use mysql_error() to return the real error in your mysql connection.

[www.php.net]



CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Mortgage and Home Loan Advice:
Clarify Loans

Options: ReplyQuote


Sorry, only registered users may post in this forum.