|
Posted by J.O. Aho on 11/05/06 22:40
Paul wrote:
> I use this code:
> $link = mysql_connect('localhost', 'username', 'password');
> if (!$link) {
> die('Could not connect: ' . mysql_error());
> }
> echo 'Connected successfully';
>
> And get this error:
> Warning: mysql_connect() [function.mysql-connect]: Client does not support
> authentication protocol requested by server; consider upgrading MySQL client
> in D:\MyDocuments\web\client\login.php on line 3
>
> Line 3 = $link = mysql_connect('localhost', 'username', 'password');
try with mysqli_connect() instead of the mysql_connect()
see www.php.net/manual/en/function.mysqli-connect.php
and www.php.net/manual/en/ref.mysqli.php
//Aho
Navigation:
[Reply to this message]
|