Startup

그누보드5 설치, 최고관리자 PASSWORD 함수 에러 해결

Kislog P&I 2021. 1. 18. 21:38

다음의 글을 참고했다.

sir.kr/g5_tip/9410

 

mysql 5.7, mysql 8.0 이상 버전 password 대응하기 (PBKDF2) > SIR

 아래 글은 사용환경 mysql 5.7 , mysql 8.0 이상 버전을 사용하는 분들에게 해당됩니다.

 

mysql 5.7 이상부터는 

 

최초 설치시 password 설정은 영소문자+영대문자+숫

sir.kr

github.com/gnuboard/gnuboard5/commit/76aabc8f810a58e43473ed3c682dc14b1beaa16e?diff=split

 

PBKDF2 PASSWORD 추가 · gnuboard/gnuboard5@76aabc8

Permalink This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Browse files PBKDF2 PASSWORD 추가 Loading branch information Showing 5 changed files with 260 additions and 3 deletions. +1 −1 b

github.com

원인:

mysql 8.0 이상부터는 password 함수가 사라졌으므로, password 함수를 사용할수 없습니다.
 
password 함수를 사용할수 없으므로, 패스워드 hash 값을 빈값으로 받게 됩니다. ( 로그인 불가 현상이 일어납니다. )
 
위의 문제점을 보완하고자 PBKDF2 를 이용한 코드를 작성해 보았습니다.

 

 

install_db.php를 다음과 같이 바꿨다.

설치 성공

'Startup' 카테고리의 다른 글

듀딜리전스(Due Diligence)  (0) 2021.01.03
맥에 TensorFlow 2 설치하기  (0) 2020.11.08
BUSINESS MODEL STORY 101  (0) 2020.11.07
한국의 드론 스타트업  (0) 2020.09.29
한국의 AR/VR 스타트업  (0) 2020.09.28