MysQL Server Çalışıyor.
MySQL Servera bağlantıda gerçekleşiyor. MySQL Command Line' dan bağlanıyor.
Verdiği hata :
Kullandığım Script Deneme amacıyla :
php.net' in vermiş olduğu örnekteki script. direk Mysql un kendi DB sinde user tablosuna bağlanmaya çalışıyorum. Kod :
PHP- Kodu:
<?php
// Connecting, selecting database
$link = mysql_connect('localhost', 'root', 'a')
or die('Could not connect: ' . mysql_error());
echo 'Connected successfully';
mysql_select_db('mysql') or die('Could not select database');
// Performing SQL query
$query = 'SELECT * FROM user';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
// Printing results in HTML
echo "<table>\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "\t<tr>\n";
foreach ($line as $col_value) {
echo "\t\t<td>$col_value</td>\n";
}
echo "\t</tr>\n";
}
echo "</table>\n";
// Free resultset
mysql_free_result($result);
// Closing connection
mysql_close($link);
?>
Verdiği hata ise :
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Inetpub\wwwroot\index.php on line 3
Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client