웹개발(44)
-
Win R2 - 프로그램 설치시 dll 에러
결과 : 서비스에서 아래 적은 4개 자동으로 키고 업데이트 과정 : 결과적으로 dll이 없어서 생긴 문제이지만 여기까지 오는데 꽤 오래 걸렸다. // MariaDB The setup was unable to automatically close all requested applications. please ensure that the applications holding files in use are closed before continuing with the installation. // MongoDB Service 'MongoDB Server (MongoDB)' (MongoDB) failed to start. Verify that you have sufficient privileges to start ..
2022.11.03 -
mongodump & mongorestore
특정 서버 내에 있는 데이터를 복사해서 따로 보관하고 싶은 경우(copy) mongodump를 사용한다. 그리고 따로 보관해둔 데이터를 원하는 서버에 붙이고 싶은 경우(paste) mongorestore를 사용한다. - 참고로 mongoimport와 mongoexport도 비슷한 용도로 있는데 데이터 보존능력이 떨어지고 속도가 느려 비추. os마다 다른지는 모르겠지만 지금 내가 쓰는 window에선 두 용어가 모두 있었다. !! 리눅스에선 싱글쿼테이션을 아이디나 비밀번호 등에 넣고 윈도우에서는 퀏츠 생략 // mongodump // mongodump --host 아이피 --port 27017 -u 아이디명 -p 비밀번호 --authenticationDatabase 데이터베이스명 --db 디비명 --out..
2022.10.12 -
mongoDB 설치 in window
1. 몽고 msi 파일 설치 원하는 OS, 버젼, 패키지 선택해서 다운로드 https://www.mongodb.com/try/download/community?tck=docs_server MongoDB Community Download Download the Community version of MongoDB's non-relational database server from MongoDB's download center. www.mongodb.com 2. 설치 윈도우는 Program Files 내에 설치된다. 환경변수는 자동으로 세팅되어 굳이 할 필요 없었다. // 나의 경우 설치된 경로 C:\Program Files\MongoDB 3. 서버 연결되었는지 확인 CMD에서 설치된 경로 내 ./Server..
2022.10.12 -
E QUERY [js] uncaught exception: Error: couldn't add user: not authorized on admin to execute command
유저 생성이 안되는 상황 루트계정이어도 안되는건 마찬가지인데 이건 securitty.authorization이 true로 되어있어서 생기는 문제 1. security 주석처리 // 경로 /etc/mongod.conf // conf내용 수정(=주석처리) #security: # authorization: enabled 2. mongod 재시작 systemctl restart mongod 3. db 선택 및 유저 생성 use admin db.createUser({ user: "adminUser", pwd: "password", roles: [ { role: "userAdminAnyDatabase", db: "admin" }, { role: "dbAdminAnyDatabase", db: "admin" }, { ..
2022.10.04 -
74680 ExecStart=/usr/sbin/mariadbd $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=dumped, signal=ABRT)
오늘 하루종일 이거만 찾았다. 경로좀 바꾸려고 서버 올라가있는걸 건드렸는데 쭉 에러떠서 식겁... 그래도 해결했다. 다음을 보자 나의 경우 데이터 경로를 /home/mariadb/에 두려고 옮기다가 꼬였다. 보니까 다른 디비를 prefix지정해두어서 홈계정에 또 두기는 애매한 상황. 그래서 똑같이 prefix경로대로 다시 정해주었다. # 다시 data 경로 제대로 잡아주기 mysql_install_db --user=mysql --datadir=/local/installed/data/ /* Installing MariaDB/MySQL system tables in '/local/installed/data/mariadb' ... OK To start mysqld at boot time you have to ..
2022.09.26