![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
在php5中,我连接数据库时,显示:
CODE: Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in D:\netserver\website\successful.php on line 71 |
而我的php文件是:
[PHP]$link=mysql_connect("$db_host","$db_user","$db_password") or die("不能连接数据库 : " . mysql_error());
$db=mysql_select_db($db_name,$link);
$query_one="select username from $user_table where username='$username'";
$result=mysql_query($query_one);[/PHP]
是不是php5中,这个格式该换了啊???
提问者:87401028 08-14 15:03
答复

