Mysql connection
| From: | A. Bacon | Date: | Wed, 12 Dec 2001 07:46:07 +0000 |
| Subject: | Mysql connection | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-10853@lists.php.net to get a copy of this message | ||
Hi...I'm new to php and mysql so please bear with me. I am having a
problem connecting to mysql through php. If I go into the mysql
monitor, the username and password that I set up are present in the user
db, and my scripts using $connection = mysql_connect("localhost",
"myusername", "mypassword"); have sometimes connected me, but sometimes
I get cutoff at the past with this:
Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in c:\program files\apache
group\apache\htdocs\db_connect.php on line 3
I'm using Meloni's "PHP - Fast and Easy" as my reference tool. I've got
Apache1.3.12 running on win95.
Any help would be greatly appreciated...Tonloc