Hi. I trying to conect to MySQL with this line: , <?php //function Conec() // { if (!($link=mysql_connect("localhost","root","utopia"))) { echo "Error conectando a la base de datos."; exit(); } if (!mysql_select_db("construccion",$link)) { echo "Error seleccionando la base de datos."; exit(); } return $link; // } //$link=Conectarse(); //echo "Conexion con la base de datos conseguida.<br>"; //mysql_close($link); //cierra la conexion ?> ___________________________ and I get this response : , Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in D:\Inetpub\wwwroot\conexion.php on line 4 Error conectando a la base de datos. I´m working with: * Win XP * IIS * PHP 4.3 * AND MySQL Server 4.1
$link=Conectarse(); PHP: You are calling a function thats non-existent! try changing it to $link = Conec(); PHP:
Take a look at this. http://www.digitalpeer.com/id/mysql http://geekswithblogs.net/timh/archive/2005/10/31/58591.aspx http://earthcode.com/blog/2006/03/client_does_not_support_authen.html