[서버 설치] mysql_secure_installation

[root@ML-01 www]# mysql_secure_installation

 

 

 

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL

      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

 

In order to log into MySQL to secure it, we'll need the current

password for the root user.  If you've just installed MySQL, and

you haven't set the root password yet, the password will be blank,

so you should just press enter here.

 

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 MySQL

root user without the proper authorisation.

 

Set root password? [Y/n] y

New password: 

Re-enter new password: 

Password updated successfully!

Reloading privilege tables..

 ... Success!

 

 

By default, a MySQL installation has an anonymous user, allowing anyone

to log into MySQL without having to have a user account created for

them.  This is intended only for testing, and to make the installation

go a bit smoother.  You should remove them before moving into a

production environment.

 

Remove anonymous users? [Y/n] y

 ... Success!

 

Normally, root should only be allowed to connect from 'localhost'.  This

ensures that someone cannot guess at the root password from the network.

 

Disallow root login remotely? [Y/n] n

 ... skipping.

 

By default, MySQL comes with a database named 'test' that anyone can

access.  This is also intended only for testing, and should be removed

before moving into a production environment.

 

Remove test database and access to it? [Y/n] y

 - Dropping test database...

ERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist

 ... Failed!  Not critical, keep moving...

 - Removing privileges on test database...

 ... Success!

 

Reloading the privilege tables will ensure that all changes made so far

will take effect immediately.

 

Reload privilege tables now? [Y/n] y

 ... Success!

 

 

 

 

All done!  If you've completed all of the above steps, your MySQL

installation should now be secure.

 

Thanks for using MySQL!

 

 

Cleaning up...

0
0
이 글을 페이스북으로 퍼가기 이 글을 트위터로 퍼가기 이 글을 카카오스토리로 퍼가기 이 글을 밴드로 퍼가기
captcha
자동등록방지 숫자입력

웹개발

번호 제목 글쓴이 날짜 조회수
42 [MySQL] user Table 권한설명 최고관리자 10-13 2,050
41 [NginX] Codeigniter를 위한 server config 최고관리자 09-09 2,757
40 [Nginx] 역할 최고관리자 09-09 2,709
39 [MySQL] Replace를 이용하여 데이타 내용 치환하기 최고관리자 09-08 1,717
38 [리눅스] Mysql Database 이름을 www.telepasi.com처럼 하면 안됨 최고관리자 09-08 1,672
37 [리눅스] CentOS vsftpd 설치 최고관리자 09-08 1,737
36 [리눅스] 사용자 목록 확인 (Linux User List) 최고관리자 09-08 13,869
35 [NginX] 리버스 프록시(Reverse Proxy)란 최고관리자 09-08 5,113
34 [리눅스] go lang - REST API를 위한 Gin 설치 최고관리자 09-07 1,761
33 [리눅스] go 환경설정 최고관리자 09-07 1,749
32 [리눅스] CentOS7 에서 go Lang 설치하기 최고관리자 09-07 1,717
31 [리눅스] Mysql 원격접속 허용하기 최고관리자 09-07 1,799
30 [서버설치] How to Install PHP 7, NGINX, MySQL on CentOS/RHEL 7.6 최고관리자 09-06 1,781
29 [서버 설치] mysql_secure_installation 최고관리자 09-06 1,719
28 [서버 설치] CentOS7 방화벽 설치 최고관리자 09-06 1,646
27 [DNS] abc.com www.abc.com 레코드 설정 최고관리자 09-05 1,680
26 [리눅스] httpd conf 위치 확인 및 conf 문법검사 명령 최고관리자 09-05 2,398
25 [리눅스] Apache 권한에 대한 참고 사항 최고관리자 09-04 4,394
24 [리눅스] CentOS Apache 주요 디렉토리 최고관리자 09-04 1,847
23 [리눅스] CentOS 6 vs CentOS 7 명령어 대응 최고관리자 09-04 1,917