For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > May 2005 > Re: [PHP-INSTALL] PHP 5, mySQL and Win XP. I NEED HELP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] PHP 5, mySQL and Win XP. I NEED HELP
Just Anidiot

2005-05-05, 3:57 pm

What happens if you drop the port number?=20

On 5/4/05, Oscar Andersson <oscarandersson2@hotmail.com> wrote:
> I have made a instal of the latest mySQL and PHP 5 on my computer.
> I have made the following changes to my php.ini file
>=20
> extension=3Dphp_mysql.dll
> extension_dir =3D "c:\php\"
>=20
> and i have put the php_mysql. and libmysql.dll in c:\php\ and in c:\windo=

ws
> to
>=20
> Now i try this in my php-file
> $con =3D mysql_connect("localhost:3306", "buddy", "bestbuddy");
>=20
> I cant connect to mySQL. I dont know what is wrong. mySQL listen to port
> 3306. I have tried with my IP to. I get this warning
> Warning: mysql_connect() [function.mysql-connect]: Too many open links (0=

)
> in myfilename.php.
>=20
> I hope for help
> Oscar Andersson
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com