-
[MySQL] 오류해결 : Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation '='
발생 새 테이블을 추가하고 다른 테이블과 조인하려고 하는데 아래와 같은 에러가 발생 Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation '=' 원인 기존 테이블과 새 테이블의 Collate 값이 달라서 발생 해결 ALTER TABLE {테이블명} CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-
API 호출로 텔레그램 메시지 전송하기
1. 텔레그램 bot 설정 (1) 텔레그램 앱에서 botFather 검색 후 채팅 시작 (2) /newbot 명령어로 봇 생성 후 bot 이름, bot 사용자이름 각각 입력 (3) 생성된 봇 채팅방에서 /start 명령어로 활성화한 뒤 아무 텍스트 입력 2. chat_id 가져오기 위에서 복사한 access token을 넣고 채팅 업데이트 API 호출 (GET) * https://api.telegram.org/bot{access_token}/getUpdates ex) https://api.telegram.org/bot1234567890:ASDFasdfASDFasdfASDFasdfASDFasdf/getUpdates 3. 메시지 보내기 2번에서 복사한 chat_id를 넣고 메시지 API 호출 (GET) * ..
-
[Go] 오류해결 : C compiler "gcc" not found
발생 1. 새로운 개발환경(Ubuntu) 구축 2. 'go build' 실행 cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in $PATH 원인 CGO이기 때문에 GCC로 컴파일을 해야하는데, 해당 환경에 GCC가 없어서 발생 해결 Ubuntu 터미널에서 아래 명령어를 통해 패키지 설치 sudo apt-get install -y build-essential