数据库连接失败,求指点!!!!!
代码:
<?php
header("Content-type:text/html;charset=utf-8");
if(mysqli_connect('localhost','kk','kk')){
echo "连接成功";
}else {
echo "连接失败";
}
?>
显示:
Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user 'kk'@'localhost' (using password: YES) in D:\PHP\phpStudy\WWW\Demo\test\index.phpon line 3
连接失败
求指点!!!!!