You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 2
Warning: mysqli_select_db() expects parameter 1 to be mysqli, boolean given in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 3
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 4
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 5
Fatal error: Uncaught Error: Function name must be a string in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php:9 Stack trace: #0 {main} thrown in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 9
확인 부탁드립니다.
환경
윈도우10, 크롬 입니다.
The text was updated successfully, but these errors were encountered:
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 2
데이터베이스 접속에서 에러가 나서 그 이후의 구문도 줄줄이 에러가 나고 있는 듯 한데, password 문제가 아니라면 root 랑 localhost 중에 잘못된 것이 있겠네요. 처음 서버 설정과 일치하는지 확인해보셔야 할 것 같네요. (참고로 localhost는 Mysql 서버가 설치된 컴퓨터와 PHP 서버가 설치된 컴퓨터가 동일한 경우에만 제대로 동작합니다.)
증상
위와 같이 코드를 작성했을때 아래와 같이 에러 메세지가 뜹니다.
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 2
Warning: mysqli_select_db() expects parameter 1 to be mysqli, boolean given in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 3
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 4
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 5
Fatal error: Uncaught Error: Function name must be a string in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php:9 Stack trace: #0 {main} thrown in C:\Bitnami\wampstack-7.1.12-0\apache2\htdocs\php\index.php on line 9
확인 부탁드립니다.
환경
윈도우10, 크롬 입니다.
The text was updated successfully, but these errors were encountered: