1. DB 생성

-> create database nexfadb;
-> show databases;
         : nexfadb 데이터베이스가 추가되었다

2. 사용자 등록

모든 권한 주기

grant all privileges on nexfadb.* to nexfa@localhost identified by 'nexfa' with grant option;

위와 같이 하면 localhost 에서만 접근이 가능하다.

모든 호스트에 대해 접근을 가능하게 하기 위에서는

grant all privileges on nexfadb.* to nexfa@'%' identified by 'nexfa' with grant option;

잡업을 마친 후에는 꼭

flush privileges;

exit;

적용이 되었는지 확인 하기 위해
mysql -unexfa -pnexfa nexfadb;



 


블로그 이미지

비추마

,