Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th June 2006, 22:47
Racer23 Racer23 is offline
Junior Member
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Angry How do I link a Mysql database?

I am using one server to host all of my files and the other server to host my MySQL. I need to edit a few pages with the server name database name user name password. For server name i have currently "localhost" which now is not true. I have the IP address of my server (for the database) but how do I find the patch to the databases? and how would I write it in where local host in now?

thank you
Reply With Quote
Sponsored Links
  #2  
Old 27th June 2006, 12:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by Racer23
but how do I find the patch to the databases? and how would I write it in where local host in now?
I'm not sure I understand your question. Can you describe your problem in more detail?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 27th June 2006, 21:32
Racer23 Racer23 is offline
Junior Member
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a server with MySQL at IP address 1.1.1.1. I also have a server which hosts my domain along with my PHP files at IP 2.2.2.2. how do I point my php files to recognize the databases located on a seperate server?
Reply With Quote
  #4  
Old 28th June 2006, 11:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

Instead of "localhost", you simply put 1.1.1.1 into your PHP scripts as the MySQL server.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Client Website MySQL Database Names Lister Installation/Configuration 4 12th January 2008 17:21
Mail System doesnt work! crichton Installation/Configuration 3 17th September 2007 23:49
colocation problem d3m0nic Installation/Configuration 14 23rd June 2006 23:18
Cant connect to MYSQL database from Dreamweaver toyito Installation/Configuration 5 1st February 2006 16:52
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 16:04


All times are GMT +2. The time now is 07:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.