wemustdesign Posted November 30, 2009 Share Posted November 30, 2009 I am currently doing a small script for a company that doesn't have mySql support on there hosting. How would I connect to the database on my hosting account? Currently I am using the following but have tried http://www.mysite.com $database['host'] = localhost; Link to comment https://forums.phpfreaks.com/topic/183416-connect-to-database-that-isnt-localhost/ Share on other sites More sharing options...
play_ Posted November 30, 2009 Share Posted November 30, 2009 Your site needs to allow remote mysql connections. If they do, they should have in their knowledgebase/FAQ the server to connect to. Link to comment https://forums.phpfreaks.com/topic/183416-connect-to-database-that-isnt-localhost/#findComment-968128 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.