Jump to content

mysql_connect - error


galafura

Recommended Posts

:(

 

Hi

I'm running this php file in my PC:

<?php

$link = mysql_connect('localhost', 'root', 'sa');

if (!$link) {

    die('Could not connect: ' . mysql_error());

}

echo 'Connected successfully';

mysql_close($link);

?>

But I'm getting this error:

mysql_connect(): Client does not support authentication protocol requested by server.

How can I solve this issue. Tks

 

Link to comment
https://forums.phpfreaks.com/topic/190807-mysql_connect-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.