Re: Common causes of the following error ??
| From: | Mark Collin | Date: | Mon, 12 Mar 2001 06:58:50 +0000 |
| Subject: | Re: Common causes of the following error ?? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7299@lists.php.net to get a copy of this message | ||
Untitled Documentthis is what i'm using to try and connect:-
$DB_SERVER="localhost"; // Database Server machine
$DB_LOGIN="web"; // Database login
$DB_PASSWORD="webpassword"; // Database password
// Connect to the Database
if (!($link=mysql_pconnect($DB_SERVER, $DB_LOGIN, $DB_PASSWORD))) {
DisplayErrMsg(sprintf("error connecting to host %s, by user %s",
$DB_SERVER, $DB_LOGIN));
exit();
}
------------------------------------------------------------------------------------
My guess would be the host for mysql is not set correctly. Try removing the
http:// stuff from you host variable.
Kevin Leavell
kevin@ldigitaldesign.com
P 406.829.8989
C 406.240.4595
---> -----Original Message-----
---> From: Mark Collin [mailto:fyrespray@ukgamer.net]
---> Sent: Sunday, March 11, 2001 3:13 PM
---> To: php-db@lists.php.net
---> Subject: [PHP-DB] Common causes of the following error ??
--->
--->
---> Warning: MySQL Connection Failed: Can't create TCP/IP socket (10091)
--->
---> i keep getting this error with some of my pages and cannot
---> work out why, can anyone give me a list of common causes of
---> this error so i can try and work out whats going worng ???
--->