메뉴 건너뛰기
MySQL을 설치하면 디폴트(Default)로 localhost만 접속이 허용됩니다. 일반적으로 웹서버와 DB서버는 물리적인 머신을 분리해서 쓰는 경우가 많은데 이러한 경우 웹서버에서 DB서버에 접근하기 위해서는 웹서버의 IP를 MySQL의 user 테이블에 등록 해 주어야 합니다. 방법은 아래와 같습니다.mysql> grant all privileges on db명.* to 사용자@IP주소 identified by '비밀번호' with grant option; |
|
위의 명령어로 IP등록을 했다면 MySQL의 user 테이블을 select * from user 또는 select * from mysql.user로 살펴봅시다. 위 사용자의 host 컬럼에 해당 IP가 등록되어 있을 것입니다. 물론 위에서는 grant all 이기 때문에 해당 db에 모든권한을 주는 것입니다.
-
[MySQL] 백업 및 복구
Date2017.04.12 Views5392
Read More
-
[mysql,mariaDB] 컬럼 암호화, 복호화
Date2020.11.25 Views773
Read More
-
UPDATE ~ CASE 문을 사용한 조건별 업데이트
Date2020.07.28 Views1396
Read More
-
Union 사용법. 여러 테이블의 같은 값을 한번 쿼리로 추출하기
Date2017.11.21 Views3918
Read More
-
SQL 고급
Date2017.12.22 Views6035
Read More
-
order by field 와 union, 원하는 대로 정렬 하기
Date2021.03.26 Views768
Read More
-
no exists, not in 을 이용한 조건에 만족하지 않는 것들 구하기, 둘의 차이점
Date2021.03.26 Views125
Read More
-
MySQL의 alter table 명령어 모음
Date2017.04.12 Views5105
Read More
-
MySQL에서 원격 IP 접속 허용하기
Date2017.04.12 Views5621
Read More
-
MySQL에서 사용자 권한 주기 (grant 명령어)
Date2017.04.12 Views5885
Read More
-
MySQL〃오라클의 nextval을 MySQL에서 사용하기
Date2018.07.24 Views3864
Read More
-
mysqlbinlog (mysql 백업, 로그남기기)
Date2021.03.26 Views201
Read More
-
MySQL/MariaDB 백업 & 복원 - mysqldump
Date2015.08.07 Views7384
Read More
-
mysql-bin(binary log)파일 정리 및 삭제
Date2023.01.12 Views117
Read More
-
mysql-bin 로그를 SQL 문으로 변환한는 방법
Date2018.07.18 Views1672
Read More
-
mysql(union,join)
Date2017.11.16 Views3837
Read More
-
mysql(exists, not exists)
Date2017.11.16 Views4090
Read More
-
MYSQL 프로시져 PROCEDURE
Date2021.03.27 Views197
Read More
-
mysql 포트 바꾸기, 외부에서 접속하기
Date2021.03.26 Views5078
Read More
-
MySQL 파티션 개요
Date2017.12.22 Views4150
Read More
© 2016 JOSHI. All Rights Reserved
© k2s0o1d4e0s2i1g5n. All Rights Reserved