使用mysql_i连接数据库时出错-拒绝访问

时间:2019-04-09 15:27:51

标签: php mysql access-denied

当我尝试连接到数据库时,我收到此错误:

  

警告:mysqli :: __ construct():(HY000 / 1045):在网上C:\ xampp \ htdocs \ artgallery \ connect.php中,用户'eyohan01'@'localhost'的访问被拒绝(使用密码:是) 7连接失败:用户'eyohan01'@'localhost'的访问被拒绝(使用密码:是)

<?php
$connect=mysqli_connect("localhost","root","","")or die("we did not connect to the database");
mysqli_select_db($conn,"artgallery")or die("we did not select database");
?>

0 个答案:

没有答案