참조: https://prinha.tistory.com/entry/MySQL-Error-1068-Multiple-primary-key-defined [MySQL Error] 1068. Multiple primary key defined 테이블에 PRIMARY KEY 컬럼을 추가할 때, 기존 PRIMARY KEY들이 잡혀있기 때문에 멀티플 오류가 났다. 해결방법은 ! 1) 추가할 컬럼을 추가하기 ALTER TABLE 테이블명 ADD 컬럼명 varchar(20) not null default '.. prinha.tistory.com https://karzin.tistory.com/232 [MariaDB, MySQL] 에러해결 : Multiple primary key defined [MariaDB, MySQL..
elasticdump --input="http://계정ID:계정PW@localhost:9200/indexName --output="./indexName.json" --searchBody="$query" --limit=1000 -type=data 예시 elasticdump --input="http://elastic:test11@localhost:9200/test --input-index= --output="./test.json --searchBody="$query" --limit=1000 --type=data
검색엔진 xpack 설정이 걸려있을경우 curl -XGET 'localhost:9200/_cat/indices?pretty' 위 같은 명령어 실행 시 { "error" : { "root_cause" : [ { "type" : "security_exception", "reason" : "missing authentication credentials for REST request [/_cat/indices?pretty]", "header" : { "WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\"" } } ], "type" : "security_exception", "reason" : "missing authentication credentia..
function arrayBufferToString(buffer: ArrayBuffer): string { return String.fromCharCode.apply(null, Array.from(new Uint16Array(buffer))); } function stringToArrayBuffer(str: string): ArrayBuffer { const stringLength = str.length; const buffer = new ArrayBuffer(stringLength * 2); const bufferView = new Uint16Array(buffer); for (let i = 0; i < stringLength; i++) { bufferView[i] = str.charCodeAt(i);..
MSW를 이용한 API Mocking 테스트 중 위 에러 발생 React-Query 등 사용중으로 정확한 원인 파악 중 React-Query 부분을 수정하니 정상 동작 as-is const wrapper = () => ( ) render( ); const { result }= renderHook(() => useSearchGallery('test'), { wrapper }); to-be const Wrapper = ({ children }: any) => ( {children} ) render( ); const { result }= renderHook(() => useSearchGallery('test'), { wrapper: Wrapper });
출처: https://yuricoding.tistory.com/4 [CSS] CSS 공부방법! 게임으로 배우는 CSS 코딩공부를 하면서 정말 여러가지 강의를 접했다.... 그중 CSS학습에 도움이 될만한 좋은 사이트가 있어 블로그에 공유한다. 이 사이트는 유튜버 드림코딩의 엘리님의 강의를 듣고 알게된 사이트 yuricoding.tistory.com https://flukeout.github.io/# CSS Diner A fun game to help you learn and practice CSS selectors. flukeout.github.io https://flexboxfroggy.com/#ko https://dev.to/devmount/8-games-to-learn-css-the-fun-way-..