數(shù)據(jù)庫連接失敗,求指點(diǎn)!?。。?!
代碼:
<?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
連接失敗
求指點(diǎn)?。。。?!
2022-03-24
如果實(shí)在是困難的話,就先下載一個(gè)全部集成好的環(huán)境,先往下學(xué)require_once后面不能有空格