본문 바로가기


DB

[MySQL] mysqldump 사용 시 나타나는 에러 대응

개발을 하다가 목업데이터를 받아오기위해서 dump 를 왕왕 사용하는 편인데 서로 다른 서버에서 가져올때 에러가 나는 케이스들에 어떤 옵션들로 대응했는지 정리 한다.

 

1. 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

dump 뜰 때 아래 옵션 추가

--no-tablespaces

 

2. Access denied; you need (at least one of) the SUPER, SYSTEM_VARIABLES_ADMIN or SESSION_VARIABLES_ADMIN privilege(s) for this operation

dump 뜰 때 아래 옵션 추가

--set-gtid-purged=OFF

 

3. Data truncation: Cannot get geometry object from data you send to the GEOMETRY field

dump 뜰 때 아래 옵션 추가

--hex-blob

 

 

 

 

끝!