当我尝试连接到数据库时,我收到此错误:
警告: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");
?>