일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- DotNet
- 맥미니
- otel
- docker
- Flutter
- opentelemetry
- shared_preload_libraries
- pg_stat_statements
- AnimatedPositioned
- elasticSearch
- Linux
- version 2
- log
- option pattern
- mysql
- 옵션 패턴
- vscode
- sqlc
- module upgrade
- user-secrets
- User
- openrc
- go
- Android
- IDX Project
- rc-service
- golang
- 윈도우즈 터미널
- SQL Server
- 무선 디버깅
- Today
- Total
목록전체 글 (129)
CATCHV Blog
WSL2 docker로 mysql을 올려서 clone 테스트 중 문제가 발생하여 정리합니다. WSL2 docker로 mysql을 사용하며 data directory를 volume으로 연결하여 사용하였는데 mysql을 local clone 하고 해당 clone data directory(volume 설정 안함)로 mysql을 시작하였는데 다음과 같은 메세지와 함께 에러가 발생하였습니다. [ERROR] [MY-011087] [Server] Different lower_case_table_names settings for server ('0') and data dictionary ('2'). [ERROR] [MY-010020] [Server] Data Dictionary initialization failed..
error msg Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root! 원인 : root 계정으로 mysqld를 실행해서 생기는 에러입니다. mysqld는 mysql 계정과 그룹으로 실행되어야 합니다. 해결 방법 my.cnf에 [mysqld]에 user=mysql 을 입력합니다. 임시로 실행하는 경우라면 shell> mysqld --user=mysql 로 실행 할 수 있습니다.
mysql 8 community를 설치하면 root 계정의 임시 패스워드가 mysqld.log에 기록되게 됩니다. grep 'temporary password' /var/log/mysqld.log 하지만 해당 파일이 사라지거나 dockerfile 설치시에는 mysqld.log이 남지 않습니다. root@localhost의 패스워드를 초기화 해야 합니다. 1. mysqld의 서비스를 중지합니다. systemctl stop mysqld 2. mysqld의 서비스에 옵션을 설정하여 실행합니다. mysqld --user=mysql --skip-grant-tables * --user=mysql : mysqld를 mysql 계정 권한으로 실행합니다. (보통 root나 다른 계정으로 로그인하므로 해당 권한을 할당하여..
1. Redis 설치 Redis는 소스를 받아서 컴파일 하는 방법과 repository에서 다운 받아 설치하는 방법이 존재합니다. Centos 계열이나 Ubuntu에서는 yum(dnf), apt-get으로 설치가 가능합니다 1) 소스로 설치하는 방법 $ dnf install wget $ dnf install make $ dnf install gcc $ wget https://download.redis.io/releases/redis-6.2.5.tar.gz $ tar xzf redis-6.2.5.tar.gz $ cd redis-6.2.5 $ make l 만약 컴파일 중에 에러가 발생하면 make distclean 를 실행해서 이전 컴파일 내역을 삭제 합니다. 서버 실행 $ ./src/redis-server..
SQL Server 2017에 추가된 Graph 관련 내용을 보고 있는데 어떻게 DB에 반영해야 될지 감이 안와서 찾아보니 아주 좋은 글이 있네요. https://www.red-gate.com/simple-talk/sql/t-sql-programming/sql-graph-objects-sql-server-2017-good-bad/
SQL Server 2017 설치시에 JAVA를 사용하는 Polybas 설정시 JDK 9.x 버젼에서는 설치가 안됩니다. 역시나 외국 애들이 건의해 놓고 있네요.https://feedback.azure.com/forums/908035-sql-server/suggestions/32899312-sql-server-2017-installer-should-recognize-java-jd polybase를 미설치로 가던지 JDK 8.x 버젼으로 내려가면 설치에는 문제가 없습니다.
Msg 20515, Level 16, State 1, Procedure sp_MSreplraiserror, Line 9 Updateable Subscriptions: Rows do not match between Publisher and Subscriber. Run the Distribution Agent to refresh rows at the Subscriber. Msg 20512, Level 16, State 1, Procedure sp_MSreplraiserror, Line 8 Updateable Subscriptions: Rolling back transaction. Msg 3609, Level 16, State 1, Procedure spAutoPrintList, Line 18 The tran..
간혹 SQL Server Service가 Strating 상태로 들어가서 중지도, 시작도 안되는 경우가 발생한다. 그럴때는 sc queryex 로 서비스의 PID를 찾은 후에 Taskkill 로 service를 Kill 할 수 있다. * 서비스가 Starting 되어서 진행이 안되는 상태 * 서비스의 이름 확인(Default Instance가 아닌 경우 서버명$인스턴스명) * sc 로 PID 확인, Taskkill 로 PID Kill
MS SQL Server 에 문제가 생겨서 cmd에서 실행을 해야 하는 경우가 있다. 하지만 여러개의 Instance가 설치 된 경우 sqlservr 는 기본 Instance인 MSSQLSERVER를 실행하게 된다. > sqlservr -s 으로 실행 할 수 있다. default instance로 인해서 실행이 안됨. instance 지정
SQL Server를 운영하다보면 SQL Server has encountered 3 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file [D:\************.MDF] in database [**********] (18). The OS file handle is 0x00000CE8. The offset of the latest long I/O is: 0x000066f16b0000 이런 에러가 발생하는 경우가 있다. 최악의 경험으로는 백업하다 에러가 발생해서 Database가 내려간 경험도 있다. ( 새벽에 IDC로 뛰어 갔다... ㅠㅠ ) 여러 가지 원인이 있는 것 같다. 검색을 해보면 하드웨어 문제라는 ..