dprichard Posted March 28, 2008 Share Posted March 28, 2008 Okay, I have one of those weird issues where everything works on our test server, but when we upload it to the client's box it stops working. I have the connection script in an include and use the same one for all pages. On the main folder I use the config.php and in the sub folders I ../config. This works fine on my test box but the client's server give me a Can't connect to MySQL server on 'localhost' (10061) error on the pages in the sub folder. The weirdest part is the database it is pointing to is not on the localhost, but on a box called mysql6. I am totally lost on this. Any thoughts or suggestions would be greatly appreciated. It is a php5 mysql 5 box. Quote Link to comment Share on other sites More sharing options...
mwasif Posted March 28, 2008 Share Posted March 28, 2008 did you use mysql_error() to check the exact error? Does the mysql user have rights to connect the database remotely? Quote Link to comment Share on other sites More sharing options...
dprichard Posted March 28, 2008 Author Share Posted March 28, 2008 It does have rights to connect because it works fine from the main folder. I can login and go through any of the main pages fine, but when I go to sub page it kicks back that error. Quote Link to comment Share on other sites More sharing options...
mwasif Posted March 28, 2008 Share Posted March 28, 2008 what do you get with mysql_error()? Quote Link to comment 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.