alienmojo Posted February 9, 2007 Share Posted February 9, 2007 $con = mysql_connect("localhost","marquis","******"); instead of useing local host when the website is being hosted by another other server do you put the url address if not what do you put Link to comment https://forums.phpfreaks.com/topic/37803-connect/ Share on other sites More sharing options...
Balmung-San Posted February 9, 2007 Share Posted February 9, 2007 You place in the server name. If the server was db.mysite.com you'd use: $con = mysql_connect("db.mysite.com","marquis","******"); Link to comment https://forums.phpfreaks.com/topic/37803-connect/#findComment-180857 Share on other sites More sharing options...
sspoke Posted February 9, 2007 Share Posted February 9, 2007 whatever the hosting details say in your email when you buy a plan normally when I buy hosting it emails you your mysql hostname is: blahblah your mysql password is: etc.. localhost should work 99% of the time Link to comment https://forums.phpfreaks.com/topic/37803-connect/#findComment-180858 Share on other sites More sharing options...
Balmung-San Posted February 9, 2007 Share Posted February 9, 2007 whatever the hosting details say in your email when you buy a plan normally when I buy hosting it emails you There are services out there (like DreamHost), where each database gets its own "server" (not sure if they really run another one, but it works like it) to connect to. Link to comment https://forums.phpfreaks.com/topic/37803-connect/#findComment-180860 Share on other sites More sharing options...
wildteen88 Posted February 9, 2007 Share Posted February 9, 2007 You can put the servers hostname (url) or you use the ip address to the remote MySQL server. Link to comment https://forums.phpfreaks.com/topic/37803-connect/#findComment-180884 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.