Re: Can I have two (or more) different SQL-databases on the same server?

2001-02-01 Thread hooker

 
 Hi,
 
 Can I have two (or more) different SQL-databases running at the same time on
 the same server (or same computer)? Does it varies between the systems?
 
 And if I can, are they all available to PHP at the same time?

If you *really* mean different databases, then yes, no problem (one of my
production machines has 5), and they will all be available to PHP, subject,
obviously to permissions.

If you mean can you have more than one instance of MYSQL running, that's
different. You may be able to (I've no experience here), but why would
you want to?


The Hooker
--
"The more crap you put up with, the more crap you're going to get"

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Can I have two (or more) different SQL-databases on the same server?

2001-01-31 Thread SED

Hi,

Can I have two (or more) different SQL-databases running at the same time on
the same server (or same computer)? Does it varies between the systems?

And if I can, are they all available to PHP at the same time?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is - New Homepage!
--


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Can I have two (or more) different SQL-databases on the same server?

2001-01-31 Thread Ryan Wahle


A database server can contain multiple databases.

On 31 Jan 2001 19:01:02 +, SED wrote:
 Hi,
 
 Can I have two (or more) different SQL-databases running at the same time on
 the same server (or same computer)? Does it varies between the systems?
 
 And if I can, are they all available to PHP at the same time?
 
 Regards,
 Sumarlidi Einar Dadason
 
 SED - Graphic Design
 
 --
 Phone:   (+354) 4615501
 Mobile:  (+354) 8960376
 Fax: (+354) 4615503
 E-mail:  [EMAIL PROTECTED]
 Homepage:www.sed.is - New Homepage!
 --
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Can I have two (or more) different SQL-databases on the same server?

2001-01-31 Thread Steve Ruby

SED wrote:
 
 Hi,
 
 Can I have two (or more) different SQL-databases running at the same time on
 the same server (or same computer)? Does it varies between the systems?
 
 And if I can, are they all available to PHP at the same time?
 
 Regards,
 Sumarlidi Einar Dadason


See "create database" in the manual (search for it) you can have as many
databases as youant (within reason) on the same server.

Not only can you access them all from php but you can run queries that
access multiple databases in the same query.. See the manual but
basicaly you can do

select * from db1.tablea, db2.tableb  blah

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Can I have two (or more) different SQL-databases on the same server?

2001-01-31 Thread Alexander Skwar

Gosh, this list is broken.  No reply-to to the list...  Had to manually
forward this message because I saw that only after I send the message to
SED

So sprach SED am Wed, Jan 31, 2001 at 07:01:02PM -:
 Can I have two (or more) different SQL-databases running at the same time on
 the same server (or same computer)? Does it varies between the systems?

Yes, for example installing postgre and mysql is no problem.  And yes, they
are available in PHP at the same time, you just need to switch your
mysql_connect to pg_connect and mysql_query to pg_exec.  But be sure to read
the different sections in the PHP manual, there are some minor differences.
And also make sure that you PHP installation supports all the different
databases.  On Mandrake (that's what I'm using and most familiar with) this
simply involves installing the right rpm packages, ie. php_mysql and
php_pgsql in this case.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die guenstige Art an Linux Distributionen zu kommen
Uptime: 1 day 1 hour 24 minutes

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Can I have two (or more) different SQL-databases on the same server?

2001-01-31 Thread Rolf Hopkins

If you mean databases others have already replied.

If you mean multiple instances of the mysql server then that is also a yes.
I haven't tried but I do know you have to specify a different port for the
2nd instance.  This is also in the manual.


- Original Message -
From: "SED" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 3:01
Subject: Can I have two (or more) different SQL-databases on the same
server?


 Hi,

 Can I have two (or more) different SQL-databases running at the same time
on
 the same server (or same computer)? Does it varies between the systems?

 And if I can, are they all available to PHP at the same time?

 Regards,
 Sumarlidi Einar Dadason

 SED - Graphic Design

 --
 Phone:   (+354) 4615501
 Mobile:  (+354) 8960376
 Fax: (+354) 4615503
 E-mail:  [EMAIL PROTECTED]
 Homepage:www.sed.is - New Homepage!
 --


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php