(mysql 5.7 에서) mysql 8.0 으로 업그레이드 후 에러 발생 해결 방법
//--------------------------
* 백업시 주의 사항
mysql 서버와 mysqldump 버전이 같으면 에러가 없음
문제는 서버와 mysqldump 버전이 다를때 발생
팁 : mysql 8.0으로 업그레이드 후에,
v5.7의 mysqldump.exe파일을 mysqldump5.exe 로 이름을 변경해서 v8.0폴더에 복사해서 v5.7서버를 다룰때 사용,
mysqldump.exe는 단독 실행 가능
//-------------------------- 
* 에러 메시지 
The server requested authentication method unknown to the client  
 You are not allowed to create a user with GRANT 
- 해결 방법 
password plugin을 mysql_native_password로 변경
php등에서 아직 새로운 인증 방식을 사용할수 없음
my.ini 파일 수정 
default_authentication_plugin=mysql_native_password 
//-------------------------- 
* 에러 메시지 
you must reset your password using ALTER USER statement before executing this statement 
- 해결 방법 
ALTER USER 'root'@'localhost' IDENTIFIED BY 'my password'; 
//-------------------------- 
* 에러메시지 
mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"')   
FROM information_schema.COLUMN_STATISTICS   WHERE SCHEMA_NAME = '' AND TABLE_NAME = '':  
Unknown table 'COLUMN_STATISTICS' in information_schema (1109) 
- 증상 
mysql 8.0으로 업그레이드 후 mysqldump 8.0 명령어로 mysql 5.7 DB를 백업하려고 할때 에러 
- 해결 방법 
 --column-statistics=0  옵션 추가