Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 특정 패키지 업데이트 중지 / 해제
- 태권v
- quota
- 워드프레스한글팩
- simplexml_load_filesimplexml
- security.limit_extensions
- no key alg
- 중독 게임
- mongodb
- rsync
- 앞으로 가기
- strtotime
- MySQL
- set foreign_key
- 리플리케이션 오류
- 이미지주소추출
- xcache
- php-fpm
- 날짜계산
- 외래키
- 쁘띠프랑스
- 뒤로 가기
- ssmtp
- 훼인
- 재귀쿼리
- 태권브이
- openfire
- php
- node 이미지 저장
- node.js
Archives
- Today
- Total
일상 기록 창고
mysql_config_editor 사용하기 본문
1. mysq5.6 부터 보안 문제로 mysqldump 스크립트에 비밀번호를 직접 사용할 경우 다음과 같은 오류 발생
mysqldump: [Warning] Using a password on the command line interface can be insecure. |
2. mysql_config_editor 를 이용하기
$ mysql_config_editor set --login-path=설정이름 --host=주소 --user=아이디 --port=포트 --password Enter passwrod : 패스워드 입력 ( 특수문자가 포함되어 있을 경우 패스워드 앞뒤로 " 로 감싸서 입력 ) .mylogin.cnf 파일이 생성됨 |
3. 설정 확인
$ mysql_config_editor print --login-path=설정이름 or $ mysql_config_editor print --all |
4. 설정 삭제
$ mysql_config_editor remove --login-path=설정이름 |
5. 사용법
$ mysqladump --login-path=설정이름 mydb > mydb_backup.sql $ mysqladmin --login-path=설정이름 ping |
'프로그래밍 > mysql' 카테고리의 다른 글
우분투 서버 mariadb에서 jemalloc 사용하기 (0) | 2021.05.13 |
---|---|
mysql.innodb_index_stats' doesn't exist (0) | 2020.10.15 |
Slave SQL: If a crash happens this configuration does not guarantee that the relay log info will be consis (0) | 2019.05.29 |
Specified key was too long; max key length is 767 bytes (0) | 2018.05.04 |
현재 날짜의 주차 구하기 (0) | 2017.07.27 |