320x100
localhost로 접속할 때는 잘 되지만 외부에서 ip로 접속에 실패하는 경우, 유저를 생성하고 권한을 부여해야 가능하다.
내부용
CREATE USER 'id'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'id'@'localhost';
외부용
CREATE USER 'id'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'id'@'%';
메모리에 변경사항 저장하기
FLUSH PRIVILEGES;
320x100
'DB > MYSQL' 카테고리의 다른 글
ibd 파일로 데이터 복구하기 (0) | 2024.04.28 |
---|---|
[MariaDB] Commands out of sync; you can't run this command now (0) | 2022.12.02 |
[MariaDB] commands out of sync. Did you run multiple statements at once? (0) | 2022.12.01 |
서버에서 DB로 UTF-8 데이터 삽입시 데이터가 깨지는 문제 (0) | 2022.11.08 |
SELECT FOR UPDATE (0) | 2022.10.20 |