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? Link to comment https://forums.phpfreaks.com/topic/106461-complete-noob/ 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); Link to comment https://forums.phpfreaks.com/topic/106461-complete-noob/#findComment-545685 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. Link to comment https://forums.phpfreaks.com/topic/106461-complete-noob/#findComment-545738 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 Link to comment https://forums.phpfreaks.com/topic/106461-complete-noob/#findComment-545821 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.