본문 바로가기
728x90
반응형

DataBase4

[MariaDB / MySQL] 초기 셋팅 + 원격접속 계정 생성 apt-get install mysql apt-get install mariadb 1. 초기 보안설정 sudo mysql_secure_installation Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation. Set root password? [Y/n] Y ( 루트 패스워드 설정 여부 ) New password: Re-enter new password: Password updated s.. 2022. 1. 3.
MongoDB Security셋팅, 유저생성, Nodejs 연동 + PHP 연동 ( With Ubuntu ) * DB 연동 테스트 - PHP : INSERT - NodeJS : FIND - 인증(authorization)설정 + 관리자 계정 설정 mongo use admin db.createUser({ user: 'root', pwd: '1234', roles: ['userAdminAnyDatabase'] }) # 'userAdminAnyDatabase'를 사용시 모든 DB접근 제어 가능 exit vim /etc/mongod.conf # "security" 주석 해제 후 "authorization: enabled" 추가 security: authorization: enabled :wq! service mongod restart mongo use admin db.auth({"root", "1234"})# 결과가 .. 2021. 7. 9.
Ubuntu 18.04 MongoDB 설치 wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list sudo apt-get update sudo apt-get install -y mongodb-org sudo service mongod start 2020. 6. 3.
AMP 컴파일설치(MySQL) 1. 관련 패키지 설치 2. cmake 설치 (빌드 도구) 3. MySQL 계정 생성 VirtualBox 너무느려서 VMware로 다시 시작 4. 소스 다운로드 (https://dev.mysql.com/downloads/mysql/5.6.html) 5. 컴파일 && 설치 (못찍었음 ㅠㅠ) cmake \ -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \ -DMYSQL_DATADIR=/usr/local/mysql/data \ -DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock \ -DSYSCONFDIR=/usr/local/mysql \ -DMYSQL_TCP_PORT=3306 \ -DMYSQL_USER=mysql \ -DDEFAULT_CHARSET=utf.. 2019. 3. 31.
728x90
반응형