Database
-
show variables like 'validate_password%'; set global validate_password.policy=LOW; create user 'sample'@'%' identified by 'sample123'; grant all privileges on *.* to sample@'%' with grant option; drop user 'sample'@'%'; flush privileges;
MySQL 8.0 사용자 계정 생성 및 권한 설정show variables like 'validate_password%'; set global validate_password.policy=LOW; create user 'sample'@'%' identified by 'sample123'; grant all privileges on *.* to sample@'%' with grant option; drop user 'sample'@'%'; flush privileges;
2023.03.02 -
/etc/mongod.conf에서 security.authorization이 true를 false로 변경 후 사용자 계정 추가 및 변경 sudo service mongod restart mongo --port 27818 --authenticationDatabase "admin" -u "admin" -p use admin show users # 사용자 추가 db.createUser({ user: 'root', pwd: 'kobic!@#$', roles: ['root'] }) # 사용자 권한 변경 및 추가 db.grantRolesToUser('cloud_team', [{ role: 'root', db: 'admin' }]) 추가 변경 작업 이후 주석 처리한 security.authorization 수정
MongoDB 데이터베이스 사용자 추가 및 권한 설정/etc/mongod.conf에서 security.authorization이 true를 false로 변경 후 사용자 계정 추가 및 변경 sudo service mongod restart mongo --port 27818 --authenticationDatabase "admin" -u "admin" -p use admin show users # 사용자 추가 db.createUser({ user: 'root', pwd: 'kobic!@#$', roles: ['root'] }) # 사용자 권한 변경 및 추가 db.grantRolesToUser('cloud_team', [{ role: 'root', db: 'admin' }]) 추가 변경 작업 이후 주석 처리한 security.authorization 수정
2022.12.27 -
# 사용자 권한 설정 mysql> grant all privileges on dbname.table to userid@host identified by 'password'; ## ## 모든 db 및 테이블에 접근권한 설정 mysql> grant all privileges on *.* to userid@host identified by 'password'; ## 모든 db 및 테이블에 권한을 주고 로컬 및 리모트에서도 접속가능하도록 설정 mysql> grant all privileges on *.* to userid@'%' identified by 'password'; ## 설정한 권한 적용 mysql> flush privileges; ## 권한 삭제 mysql> revoke all on dbname.ta..
MariaDB 사용자 접근 권한 설정# 사용자 권한 설정 mysql> grant all privileges on dbname.table to userid@host identified by 'password'; ## ## 모든 db 및 테이블에 접근권한 설정 mysql> grant all privileges on *.* to userid@host identified by 'password'; ## 모든 db 및 테이블에 권한을 주고 로컬 및 리모트에서도 접속가능하도록 설정 mysql> grant all privileges on *.* to userid@'%' identified by 'password'; ## 설정한 권한 적용 mysql> flush privileges; ## 권한 삭제 mysql> revoke all on dbname.ta..
2022.12.27 -
MongoDB 커넥션 정보를 확인할 수 있는 명령어 db.serverStatus()
MongoDB 커넥션 상태 정보 확인MongoDB 커넥션 정보를 확인할 수 있는 명령어 db.serverStatus()
2022.02.18 -
mongoDB PSA 구성으로 arbiter 추가 시 다음과 같은 장애 발생 MongoServerError: Reconfig attempted to install a config that would change the implicit default write concern. Use the setDefaultRWConcern command to set a cluster-wide write concern and try the reconfig again. 장애 처리 방법 다음 명령어 실행 후 arbiter 노드 추가 명령어 실행 db.adminCommand({ setDefaultRWConcern : 1, defaultWriteConcern: { w: 1 }, }) arbiter 노드 추가 명령어 rs.addA..
Mongodb Replication 구성 시 Reconfig attempted to install a config that would change the implicit default write concern.. 장애 해결 방법mongoDB PSA 구성으로 arbiter 추가 시 다음과 같은 장애 발생 MongoServerError: Reconfig attempted to install a config that would change the implicit default write concern. Use the setDefaultRWConcern command to set a cluster-wide write concern and try the reconfig again. 장애 처리 방법 다음 명령어 실행 후 arbiter 노드 추가 명령어 실행 db.adminCommand({ setDefaultRWConcern : 1, defaultWriteConcern: { w: 1 }, }) arbiter 노드 추가 명령어 rs.addA..
2022.02.15 -
GO 설치 다운로드: https://go.dev/dl/ 소스 설치: https://go.dev/doc/install/source Go 설치 To build the Go distribution, run 명령어 $ cd src $ ./all.bash brew 설치 명령어 brew install golang go 설치 환경 확인 명령어 go env 환경 변수 추가 export GOROOT=/usr/local/Cellar/go/1.17.6/libexec export GOPATH=/Users/kogun82/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin export GOPROXY=https://proxy.golang.org,direct Monstache 설치 brew install..
Mac OSX 환경에서 Monstache와 MongoDB 연동하기GO 설치 다운로드: https://go.dev/dl/ 소스 설치: https://go.dev/doc/install/source Go 설치 To build the Go distribution, run 명령어 $ cd src $ ./all.bash brew 설치 명령어 brew install golang go 설치 환경 확인 명령어 go env 환경 변수 추가 export GOROOT=/usr/local/Cellar/go/1.17.6/libexec export GOPATH=/Users/kogun82/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin export GOPROXY=https://proxy.golang.org,direct Monstache 설치 brew install..
2022.02.04 -
1). zookeeper clean bin/hbase clean --cleanZk 2). HBase reset bin/hbase clean --cleanAll
org.apache.hadoop.hbase.TableNotFoundException: SYSTEM.CATALOG exception with phoenix 4.5.2 장애 해결 방법1). zookeeper clean bin/hbase clean --cleanZk 2). HBase reset bin/hbase clean --cleanAll
2019.09.16 -
HBase 2.0 + Phoenix 5.0 으로 설치 후 JAVA 기반 CRUD 테스트 진행 접속 시도 시 localhost:16000으로 시도 HBase Shell 에서 확인 결과 HBase-Site.xml 에서 마스터 설정을 했음에도 불구하고 zookeper 에서 localhost:16000 로 연결 hosts 파일의 localhost, 127.0.0.1 라인 주석 처리 이후 아이피와 호스트 도메인만 맵핑 이후 zookeeper 재시작 이 후 확인
Apache HBase + Phoenix 접속 시 localhost:16000 접속되는 경우 해결 방법HBase 2.0 + Phoenix 5.0 으로 설치 후 JAVA 기반 CRUD 테스트 진행 접속 시도 시 localhost:16000으로 시도 HBase Shell 에서 확인 결과 HBase-Site.xml 에서 마스터 설정을 했음에도 불구하고 zookeper 에서 localhost:16000 로 연결 hosts 파일의 localhost, 127.0.0.1 라인 주석 처리 이후 아이피와 호스트 도메인만 맵핑 이후 zookeeper 재시작 이 후 확인
2019.07.05