tinamiller1 Posted September 29, 2008 Share Posted September 29, 2008 I have a website hosted by yahoo and i am trying to write to my own mysql db. i dont want to use theirs because i cant run reports or anything. This is the code I have for mine and I have tried everything from my IP address to the name of mysql and nothing seems to connect. Can anyone offer some advice or help with this? <?php $dbname = 'rchothobbies'; $link = mysql_connect("192.168.1.102", "root", "root") or die("Couldn't make connection."); $db = mysql_select_db($dbname, $link) or die("Couldn't select database"); ?> Quote Link to comment Share on other sites More sharing options...
nutstretch Posted September 29, 2008 Share Posted September 29, 2008 where will your database be sitting on the yahoo server or on your own Nuts Quote Link to comment Share on other sites More sharing options...
tinamiller1 Posted September 29, 2008 Author Share Posted September 29, 2008 Well Yahoo Merchant has the PHPMyAdmin and Mysql on their site and I can connect fine to it by doing mysql as the server and then the username and password. It works great. They just have no report capabilities or macros I can do. So to do that I would have to export to excel and upload to the database on my local computer. Which seems to me to be needless work. So I created a database on my local computer and tried connecting to it but it will never connect. 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.