maynor Posted December 2, 2006 Share Posted December 2, 2006 [b]Error message:[/b] Can't connect to MySQL server on '127.0.0.1' (61)(Also have tried localhost in place of IP address)The page works fine on development machine, but when uploaded to host does not connect to database.Here's a link [url=http://www.negliaballet.org/tindex2.php]http://www.negliaballet.org/tindex2.php[/url] to the production test page which may provide clues I can't see. Link to comment https://forums.phpfreaks.com/topic/29220-simple-i-think-but-so-far-unsolvable/ Share on other sites More sharing options...
ataria Posted December 2, 2006 Share Posted December 2, 2006 Trrryyy.[code]include("/home/negliaballet/public_html/page.php");[/code]change the public_html to whatever you use..and change page.php to the page you want to include. Link to comment https://forums.phpfreaks.com/topic/29220-simple-i-think-but-so-far-unsolvable/#findComment-133952 Share on other sites More sharing options...
maynor Posted December 2, 2006 Author Share Posted December 2, 2006 I don't understand this suggestion in that it's not including another file I'm having trouble with - it's connecting to the mysql database through php. Link to comment https://forums.phpfreaks.com/topic/29220-simple-i-think-but-so-far-unsolvable/#findComment-133954 Share on other sites More sharing options...
ataria Posted December 2, 2006 Share Posted December 2, 2006 Ack! Sorry.too early for meee. xDIs the code correct? post it. Link to comment https://forums.phpfreaks.com/topic/29220-simple-i-think-but-so-far-unsolvable/#findComment-133956 Share on other sites More sharing options...
Hypnos Posted December 2, 2006 Share Posted December 2, 2006 Remeber to update the username and password in mysql_connect(). Chances are, your mysql username and password is not the same as your development machine's mysql server username and password. Link to comment https://forums.phpfreaks.com/topic/29220-simple-i-think-but-so-far-unsolvable/#findComment-134004 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.