Mac 환경에서 MySQL 5.7.9 버젼 설치 후 root 접속 시도 시 패스워드 장애로 MySQL 접속이 불가능하다. sudo /usr/local/mysql/support-files/mysql.server stop sudo mysqld_safe --skip-grant-tables mysql -u root update mysql.user set password=password('2261bbs') where user='root'; 콘솔 윈도우에서 mysqld_safe 실행으로 safe 모드로 MySQL 데몬을 구동하고 다른 콘솔 윈도우를 띄어 MySQL에 접속한다. mysql -u root 접속 후 다음 명령어로 root 비밀번호를 업데이트한다. [5.7 이전 버젼] update mysql.user se..
1.데이터베이스 백업 1-1) procedure, function, trigger 포함한 백업하기(옵션 --routines --trigger) $ mysqldump --routines --trigger -u유저이름 -p패스워드 DB명 > 백업파일 [명령어 예제] $ mysqldump --routines --trigger -uroot -pxxx -A > /xxx.sql $ mysqldump --routines --trigger -uroot -pxxx [DATABASE] > [DATABASE].sql 1-2) procedure function trigger만을 백업하기 $ mysqldump --routines --no-create-info --no-data --no-create-db --skip-opt DB..
mysql -u root -p mysql update user set password=password('new-password') where user='root'; flush privileges; quit;
CentOS 6.2에서 yum을 이용한 MySQL 설치는 다음 명령어로 설치가 가능하다. 명령어 예제) yum -y install mysql mysql-server mysql-connector-odbc mysql-devel MySQL 서버 설치 후 /etc/init.d/mysqld 를 실행하여, 서버를 구동한다. 초기 MySQL의 root 권한에 대한 패스워드 초기화는 아래의 명령어를 순차적으로 실행하면 된다. mysql> use mysql; mysql> update user set password=password('123456') where user='root'; Query OK, 2 rows affected (0.03 sec) Rows matched: 2 Changed: 2 Warnings: 0 my..
MySQL 데이터베이스 백업 명령어 정리 1). 권한이 있는 계정으로 dump 명령어를 실행해야한다. 2). -p[비밀번호]는 한칸 띄우지 말고 붙여서 진행한다. 3). 저장위치를 파일명 앞에 적지않으면 현재 위치해 있는 폴더에 백업을 진행한다. 데이터베이스 전체 백업 명령어명령어 예제). mysqldump -u[아이디] -p[비밀번호] --all-databases > [저장될 파일명] 특정 데이터베이스 백업 명령어명령어 예제). mysqldump -u[아이디] -p[비밀번호] [디비명] > [저장될 파일명]특정 데이터베이스 테이블 구조 백업 명령어명령어 예제). mysqldump -u[아이디] -p[비밀번호] --no-data[디비명][테이블명] > [저장될 파일명]
1. mysql 접속 후 mysql database 선택 명령어 예제). mysql> use mysql; 2. user 테이블 살펴보기 명령어 예제). mysql> select host, user, password from user; 3. 권한 설정 명령어 예제). mysql> grant all privileges on *.* to 'root'@'%' identified by 'root의 패스워드'; 4. 등록확인하기 명령어 예제). mysql> select host, user, password from user; ※ root 계정의 host 필드에 % 가 등록되었는지 확인한다. 5. 정보 갱신하기 명령어 예제). mysql> flush privileges;
1. 다운로드 MongoDB에 대한 기본 정보는 홈페이지인, http://www.mongodb.org 에서 얻길 바라고, 관심이 있으면 아래와 같이 간단히 설치하고 테스트 할수 있다. http://www.mongodb.org/downloads 에서 가장 최신 버전을 다운 받는다. 나는 Windows32-bit 1.6.0 버전을 다운 받는다. Try MongoDB Atlas Products Try MongoDB Atlas products free. Developers can choose to use in the cloud or download locally. Either way, our software makes it easy to work with data. www.mongodb.com 2) 설치 다운 ..