본문 바로가기
반응형

etc23

[terraform] error configuring S3 Backend Initializing the backend... │ Error: error configuring S3 Backend: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid. │ status code: 403, request id: 1b811fc4-3758-4e2c-9e2f-fc110e71db08 Terraform init 실패 시 aws configure로 key와 secret key를 새로 저장해 보시기 바랍니다. 2023. 6. 8.
[MySQL] Error Code 1418 함수를 만드려고 할때 오류가 발생합니다. Error Code: 1418. This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) 함수를 만들기 위해 아래와 같이 권한 설정이 필요합니다. SET GLOBAL log_bin_trust_function_creators = 1; 2023. 4. 26.
[MySQL] RANK, DENSE_RANK, ROW_NUMBER 차이 RANK 동일 순위가 존재하고 다음 순위에서 동일 순위 개수가 추가되어 증가한다 DENSE_RANK 동일 순위가 존재하고 다음 순위에 동일 순위 +1 로 표시 된다. ROW_NUMBER 동일 순위가 없고 정렬 후 처음부터 1씩 증가한다. 아래 쿼리와 표는 Rank(_rank), DENSE_RANK(_dense), ROW_NUMBER(_row) 를 표시한 예제입니다. -- 쿼리 select *, rank() over (order by name desc) as _rank, dense_rank() over (order by name desc) as _dense, row_number() over (order by name desc) as _row from rank_test; 원본 데이터 정렬된 데이터 2023. 4. 24.
[MySQL] Error Code 1175 delete 명령어로 행을 지우려고 할때 발생합니다. Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. 쿼리로 safe update mode 해지 후 사용하면 됩니다. SET SQL_SAFE_UPDATES=0; 2023. 4. 24.
반응형