Re: MySQL Connectivity test
| From: | David Robley | Date: | Thu, 20 Sep 2001 01:04:56 +0000 |
| Subject: | Re: MySQL Connectivity test | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67920@lists.php.net to get a copy of this message | ||
On Thu, 20 Sep 2001 09:39, Jason Bell wrote:
> What is the *SIMPLEST* way to test connectivity to a database?
> Shouldnt there be a mysql_connection_test command or something? :)
>
> -Jason
Trying to connect is usually a good indicator :-)
mysql_connect returns a positive link identifier on success or an error
message on failure. That should do what you want.
I wonder what my sigmonster is up to?
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"Stupid" is a boundless concept.