일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- apple
- MYSQL
- kmip
- 앱스토어
- 앱리소스
- Nodejs
- 인증
- openssl
- git
- 2FA
- appres
- SSH
- FIDO2
- 애플
- fido
- WebAuthn
- albumbook
- SSL
- otpkey
- MFA
- 안드로이드
- css
- MSYS2
- OSX
- SWIFT
- SwiftUI
- Xcode
- Android
- 앨범북
- OTP
- Today
- Total
인디노트
MySQL 초기 비밀번호 확인 및 변경 (초기화) 본문
MySQL Server Initialization (for MySQL 5.7 only): At the initial start up of the server, the following happens, given that the data directory of the server is empty:
The server is initialized.
An SSL certificate and key files are generated in the data directory.
The validate_password plugin is installed and enabled.
A superuser account
'root'@'localhost'
is created. A password for the superuser is set and stored in the error log file. To reveal it, use the following command:shell> sudo grep 'temporary password' /var/log/mysqld.log
Change the root password as soon as possible by logging in with the generated, temporary password and set a custom password for the superuser account:
shell> mysql -uroot -p
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';
NoteMySQL's validate_password plugin is installed by default. This will require that passwords contain at least one upper case letter, one lower case letter, one digit, and one special character, and that the total password length is at least 8 characters.
Securing the MySQL Installation (for MySQL 5.6 only)
The program mysql_secure_installation allows you to perform important operations like setting the root password, removing anonymous users, and so on. Always run it to secure your MySQL 5.6 installation:
shell> mysql_secure_installation
It is important to remember the root password you set. See mysql_secure_installation — Improve MySQL Installation Security for details.
Do not run mysql_secure_installation after an installation of MySQL 5.7, as the function of the program has already been performed by the Yum repository installation.
'개발 플랫폼 및 언어' 카테고리의 다른 글
OpenVPN - TCP 사용 시 속도가 느릴 때 (0) | 2018.04.26 |
---|---|
CentOS 7 xrdp 설치 (원격데스크탑) (0) | 2018.04.26 |
A Quick Guide to Using the MySQL Yum Repository (0) | 2018.04.25 |
MySQL community server 레포지토리 등록 (0) | 2018.04.25 |
Centos 7 - 데이타베이스(MySql) 설치 (0) | 2018.04.25 |