본문 바로가기

mysql47

[RDS] SSL 인증서 만료와 확인 방법 제가 운영하는 RDS의 인증서 만료 메세지가 와서 내용에 대한 정리를 하려 글을 씁니다.먼저 잘 정리된 글이있어서 출처의 글을  참고를 많이 하였습니다. 현재 rds mysql의 버전은 8.0.35입니다.show global variables like 'version'; Variable_name|Value |.. 2024. 5. 1.
Oracle MySQL Connectors C++ and ODBC (January 2024 CPU) 관련 내용 및 패치하기 운영하는 DB에 아래와 같은 취약점 점검 메세지로 나왔습니다.관련된 내용에 대한 정리와 패치방법에 대해서 알아보겠습니다. 해당 내용은 2024년 1월의 Oracle Critical Patch Update Advisory 에서 나온 내용입니다. 특정 버전 이하의 관련 프로그램을 사용하면 위험하니 업데이트하라는 내용입니다. mysql의 버전은 8.0.36입니다.  rpm 파일들의 버전입니다.# rpm -qa |grep mysqlphp-mysqlnd-7.2.24-1.module+el8.2.0+4601+7c76a223.x86_64mysql-8.0.36-1.module+el8.9.0+21207+6c20cb3d.x86_64mysql-connector-odbc-8.0.33-1.el8.x86_64mysql-common.. 2024. 4. 30.
[server_errno=4052] Error reading packet from server: A slave with the same server_uuid/server_id as this slave has connected to the master 에러 메세지 아래의 에러메세지가 replication 환경의 slave 서버쪽에서 실시간으로 쌓이고 있었습니다. [ERROR] Error reading packet from server: A slave with the same server_uuid/server_id as this slave has connected to the master; the first event 'binlog.000011' at 54049840, the last event read from 'binlog.000011' at 256, the last byte read from 'binlog.000011' at 54049840. (server_errno=4052) 아래는 mariadb 사이트의 에러 번호 설명입니다. 이 슬레이브와 동.. 2024. 4. 22.
쿼리를 활용하여 Mysql Uptime 확인하기 쿼리를 활용하여 Update을 확인하는 글입니다. 1.Uptime 확인 show status 쿼리를 활용하여 Uptime을 확인합니다. 초형식으로 되어있으므로 가공이 필요합니다. show status like '%uptime%' Variable_name |Value | -------------------------+------+ Uptime |526090| Uptime_since_flush_status|526090| 2. sec_to_time 쿼리를 활용하여 open 후 현재까지 얼마나 지났는지 확인 select TIME_FORMAT(SEC_TO_TIME(526090 ),'%Hh %im') as Uptime from dual Uptime | --------+ 146h 19m| 끝. 2024. 4. 1.