Hi,

I'm not a PHPer, but in 'C', there is an API that can give you the MySQL
error message, which I am sure would explain the problem some more.

Quentin

-----Original Message-----
From: Ryan Booker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 1 November 2001 3:30 p.m.
To: Quentin Bennett
Subject: Re: Can't connect to new databases


In mysql directly I have no problem.

In php, when I run

mysql_select_db("database")
    or die("Failed to connect to database");


I simply get the failed error


----- Original Message -----
From: "Quentin Bennett" <[EMAIL PROTECTED]>
To: "'Ryan Booker'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 12:09 PM
Subject: RE: Can't connect to new databases


> Hi,
>
> What error message do you get.
>
> Quentin
>
> -----Original Message-----
> From: Ryan Booker [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 1 November 2001 1:22 p.m.
> To: [EMAIL PROTECTED]
> Subject: Can't connect to new databases
>
>
> I have recently installed mySQL 3.23.43.  I will be using it to run a
> website (php/mysql).  Using my php scripts I can connect to the server and
> the default test database and select information from the table I created
in
> the test database.  However, if I create a new database, not matter what
> it's called, I can not connect to it from the php.  I can however connect
to
> it directly in mysql and perform any actions on it (eg create tables,
insert
> rows, select data).
>
> Any help would be greatly appreciated.
>
> Thanks in advance,
> Ryan
>
>
> ---------------------------------------------------------------------
> 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
>
> The information contained in this email is privileged and confidential
> and intended for the addressee only. If you are not the intended
> recipient, you are asked to respect that confidentiality and not
> disclose, copy or make use of its contents. If received in error
> you are asked to destroy this email and contact the sender immediately.
> Your assistance is appreciated.
>

The information contained in this email is privileged and confidential
and intended for the addressee only. If you are not the intended 
recipient, you are asked to respect that confidentiality and not 
disclose, copy or make use of its contents. If received in error 
you are asked to destroy this email and contact the sender immediately. 
Your assistance is appreciated.

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