prcollin Posted May 20, 2008 Share Posted May 20, 2008 I dl'ed apache 2.2, mysql's latest version and php5. Since now ihave been working off my server which has all three already udpated through cpanel. Now i have them all on my computer now too and I want to administer databases for my web pages through mysql that is on my computer because that is where i have created my most recent databases. How do i make the connection from my website to the mysql on my computer nad not the one that is inherent in the hosting companies cpanel? Quote Link to comment Share on other sites More sharing options...
jonsjava Posted May 20, 2008 Share Posted May 20, 2008 <?php $db_host = "your_computers_ip"; //set to your computers IP address, or localhost if your hosting the files locally $db_user = "user"; $db_pwd = "pass"; $db_name = "db_name"; $link = mysql_connect($db_host, $db_user, $db_pwd); Quote Link to comment Share on other sites More sharing options...
paulman888888 Posted May 20, 2008 Share Posted May 20, 2008 you can save the database on your computer useing PHPmyAdmin. When you saved it go to your Mysql server (not the one on your pc). Then upload it useing PHPmyadmin giveing you PC less work to do. Quote Link to comment Share on other sites More sharing options...
prcollin Posted May 20, 2008 Author Share Posted May 20, 2008 you can save the database on your computer useing PHPmyAdmin. When you saved it go to your Mysql server (not the one on your pc). Then upload it useing PHPmyadmin giveing you PC less work to do. I use phpmyadmin currently. But it is set up with all this joomla sh**. I created databases and tables and stuff on mysql on my computer and want to access it from my webpage so i dont have to transfer everything to my other db 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.