SSH 쉘을 이용해 마리아DB(MariaDB) 설치할 때 비번 설정하는 화면이 안 나오는 경우가 있습니다.
이 경우엔 따로 설정을 해야 합니다.
마리아DB 설치가 끝난 상태에서 아래 명령어를 입력합니다.
sudo mysql_secure_installation
그러면 아래와 같은 질문이 순서대로 나옵니다.

Enter current password for root (enter for none) -> 엔터
Switch to unix_socket authentication [Y/n] -> n
Change the root password? [Y/n] -> Y
여기까지 하면 비밀번호 설정이 나옵니다.
비밀번호를 입력하고 다시 재확인 비밀번호 입력하면 아래 질문이 순서대로 나옵니다.
Remove anonymous users? -> Y
Disallow root login remotely? -> n
Remove test database and access to it? [Y/n] -> Y
Reload privilege tables now? [Y/n] -> Y
모든 설정이 완료되었습니다.
답글 남기기
댓글을 달기 위해서는 로그인해야합니다.