본문 바로가기

CS/삽질로그27

MySQL Access denied for user 'user'@'localhost' 해결하기 mysql이 설치된 서버에서 아래와 같이 입력하였더니, 접근이 안됐다 힝구 $ mysql ERROR 1698 (28000): Access denied for user 'leejuyeon'@'localhost' stackoverflow의 도움을 받아.. sudo로 접근 (https://stackoverflow.com/questions/41645309/mysql-error-access-denied-for-user-rootlocalhost) $ sudo mysql -uroot -p Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 49 Server version: 10.3.39-MariaDB-0+deb.. 2023. 7. 21.
tensorflow 에러모음 에러 상황 1 에러 메세지: StatefulPartitionedCall_17 해결 방법: tensorflow 2.12로 깔려있었는데 2.10으로 다시 깔았더니 해결됨 Detected at node 'StatefulPartitionedCall_17' defined at (most recent call last): ... return self._update_step_xla(grad, var, id(self._var_key(var))) Node: 'StatefulPartitionedCall_17' RET_CHECK failure (tensorflow/compiler/xla/service/gpu/gpu_compiler.cc:618) dnn != nullptr [[{{node StatefulPartitionedC.. 2023. 7. 12.
TypeError: Object of type float32 is not JSON serializable 오류 메세지 Object of type float32 is not JSON serializable 해결 방법 dictionary의 value가 float32 포맷이었는데, 이를 float으로 강제 형변환하여 저장하는 것으로 해결 value_float = float(value_float32) 2023. 7. 12.
표준 출력, 표준 에러 파일에 쓰기 (리다이렉션) $ python main.py > main.log 2>&1 1은 표준 출력, 2는 표준 에러를 의미함 2023. 7. 10.
pip mysqlclient 설치 오류 (metadata-generation-failed) 문제상황: pip으로 ubuntu machine에 mysqlclient를 설치하는데 오류가 났다. $ pip install mysqlclient Collecting mysqlclient==2.1.1 (from -r requirements.txt (line 32)) Using cached mysqlclient-2.1.1.tar.gz (88 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [16 lines of output] /bin/sh: 1: mysql_config: not found.. 2023. 6. 5.
Git organization PUSH 에러 - The requested URL returned error: 403 문제 상황: 회사 깃헙에 내 계정으로 푸시를 하려는데, 안됨 $ git push origin [branchname] remote: Write access to repository not granted. fatal: unable to access [remote url]: The requested URL returned error: 403 권한 문제인지 확인: 나의 경우 권한문제 remote url을 웹으로 접속하여 아무 파일이나 연 다음 수정(펜 모양 아이콘)을 해보니, 수정 권한이 없어서 fork를 해야된다고 함. 볼 수는 있지만 수정 권한이 없었던 것. 해결 방법: 관리자에게 권한 요청 후 push 시도하니 잘만 됨 2023. 6. 5.