At 11:25 AM -0500 6/27/01, Pete Kuczynski wrote:
>Hi,
>Can I connect to multiple databases on a 4.0 NT box? I created a test
>database on the same box that has the pre-production ddb, and I can not
>connect to it using the same PHP scripts [I redirected the scripts to
>look to the new test ddb] and all I had is my PHP trap statment "Unable
>to connect ..."
>
>I suspect I cannot, but some insight into this would help.

You can, but you may have to GRANT privileges on the database to the
account that you're using to connect to the server.

If your "unable to connect" message comes from the mysql_connect()
or mysql_pconnect() call, though, that would be weird.  That doesn't
specify a database, so if it worked before, it should still work.
I'd expect the error to occur when you invoke mysql_select_db().

>
>Thanks!
>
>Pete
>--
>_______________________________________
>Pete Kuczynski
>Principal Field Engineer
>DHL Airways Inc.
>Infrastructure Technology & Services
>(773)-462-9758
>24/7 Helpdesk 1-800-434-5767

-- 
Paul DuBois, [EMAIL PROTECTED]

---------------------------------------------------------------------
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

Reply via email to