连接失败:拒绝用户访问

时间:2017-03-09 07:08:48

标签: php mysqli

连接失败:拒绝访问用户' asmibeautyclinic' @' CHHOSTW15.net4.com' (使用密码:是)

## connection code ##
$localhost="ip";
$username="username";
$password="******";
$dbname="stock"; 
$connect=new mysqli($localhost,$username,$password,$dbname);
if($connect -> connect_error){
die("Connection Failed : ".$connect -> connect_error);
}else{
/* echo "Successfully Connected"; */
}

0 个答案:

没有答案