发新话题
打印

请高手帮忙!php连不上mysql老出错!

请高手帮忙!php连不上mysql老出错!

这些是我写的测试连接mysql数据库代码.
<body>
<?php
$dbh=mysql_pconnect("localhost","root","root");
echo $dbh."<br>";
?>
</body>

报错是
Warning: mysql_pconnect() [function.mysql-pconnect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Program Files\Apache Group\Apache2\htdocs\php\testMYSQL\testConnection.php on line 11

请大侠帮忙

TOP

发新话题