Computer Forum  

Go Back   Computer Forum > Computer Forums > Programming Forum > Mysql Forum

Mysql Forum Mysql Forum


Connecting PHP with 2 mysql databases?

Mysql Forum

Mysql Forum


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-2008, 09:40 PM
Junior Member
 
Join Date: May 2008
Posts: 1
Dalt RSS Feed
Connecting PHP with 2 mysql databases?

I need to connect PHP to 2 diferent MySQL databases. Because it is a network of 2 sites i can't use only one. Will that slow down my scripts? both databases are on the same mysql server
Reply With Quote
  #2 (permalink)  
Old 05-18-2008, 09:41 PM
Junior Member
 
Join Date: May 2008
Posts: 1
wesley_morris2000 RSS Feed
It shouldn't. I did it with an Asterisk PHP AGI script and it worked fine.
Reply With Quote
  #3 (permalink)  
Old 05-18-2008, 09:44 PM
Junior Member
 
Join Date: May 2008
Posts: 5
Jeffrey F RSS Feed
You should be able to maintain a db connection to any DB you choose.........on any server (if accessable to the webserver).

It can get pretty messy! Just keep track of what DB you are hitting with which SQL or you will have errors or just bad data.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me understand Mysql and other databases. (newbie question)? larry Mysql Forum 3 05-18-2008 09:39 PM
where i have to place mysql driver in apache tomcat while connecting mysql sunny Mysql Forum 0 01-12-2008 06:54 PM
Issues connecting to MySQL Database? jetstrike3000 Mysql Forum 0 01-11-2008 03:21 AM
How do i insert data from a mySQL databases into a jsp (html) combo box? rajmist Mysql Forum 0 01-06-2008 04:28 AM
How to replicate multiple databases in MySQL? sirfan98cs Mysql Forum 0 01-05-2008 04:19 PM


All times are GMT. The time now is 10:55 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93