hola no se si estara bien
me conecto a la base de datos Mysql desde PHP
con lo siguiente
<html>
<head>
<title>conex</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$link = mysql_connect("localhost", "nobody");
mysql_select_db("personas", $link);
$result = mysql_query("SELECT * FROM usuarios", $link);
echo "nick: ".mysql_result($result, 0, "nick")."<br>";
echo "email: ".mysql_result($result, 0, "email")."<br>";
echo "password :".mysql_result($result, 0, "password")."<br>";
echo "nombre :".mysql_result($result, 0, "nombre")."<br>";
?>
</body>
</html>
con el nobody entra perfectamente y puedo enviar formularios etc... pero
si quiero entrar como root no puedo
<?php
$link = mysql_connect("localhost", "root","clave_del_root");
mysql_select_db("personas", $link);
$result = mysql_query("SELECT * FROM usuarios", $link);
echo "nick: ".mysql_result($result, 0, "nick")."<br>";
echo "email: ".mysql_result($result, 0, "email")."<br>";
echo "password :".mysql_result($result, 0, "password")."<br>";
echo "nombre :".mysql_result($result, 0, "nombre")."<br>";
?>
me da el siguiente error
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in d:\inetpub\wwwroot\prueba2\TMPfn4dzbmo5j.php on line 9
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in d:\inetpub\wwwroot\prueba2\TMPfn4dzbmo5j.php on line 10
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in d:\inetpub\wwwroot\prueba2\TMPfn4dzbmo5j.php on line 11
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in d:\inetpub\wwwroot\prueba2\TMPfn4dzbmo5j.php on line 12
nick:
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in d:\inetpub\wwwroot\prueba2\TMPfn4dzbmo5j.php on line 13
email:
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in d:\inetpub\wwwroot\prueba2\TMPfn4dzbmo5j.php on line 14
password :
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in d:\inetpub\wwwroot\prueba2\TMPfn4dzbmo5j.php on line 15
nombre :
a que se debe el problema y si no es ningun conveniente con el (nobody)
gracias