-
ERROR 1045(28000) 비밀번호 오류프레임워크/리액트 React 2024. 7. 9. 11:22반응형
ERROR 1045 (28000)
: Access denied for user 'malldbuser'@'localhost' (using password: YES)
→ 마리아DB 계정 연결 중 발생한 오류 - 비밀번호 오류
→ 아래의 개념이 제대로 잡히지 않아서 생겼다.
* 원인 : malldbuser로 로그인하면서 처음 설정했던 root 비밀번호로 로그인한게 이유
1. CREATE DATABASE
malldb 데이터베이스를 만들어라
CREATE DATABASE malldb;
2. CREATE USER
새로운 생성자를 만들어라 'USER명'@'호스트명' 암호설정 '사용할암호';
CREATE USER 'malldbuser'@'localhost' IDENTIFIED BY 'malldbuser';
3. % 의 의미
CREATE USER 'malldbuser'@'%' IDENTIFIED BY 'malldbuser";
4. GRANT ALL PRIBILEGES
malldb 테이블의 모든 권한을 부여해라
GRANT ALL PRIVILEGES ON malldb. * TO 'malldbuser'@'localhost'; GRANT ALL PRIVILEGES ON malldb. * TO 'malldbuser'@'%';
'프레임워크 > 리액트 React' 카테고리의 다른 글
240708 - 0712 코드로 떠먹는 리액트 - 에러 정리 (0) 2024.07.12 모듈 호출 방식 (import, require) (0) 2024.07.09 state 개별 숫자 증가, props (0) 2023.01.19 map() (0) 2023.01.17 컴포넌트 생성, 사용하기 (1) 2023.01.16