# mysql -u root -p
// Database 추가
mysql> create database DBname;
// Database 권한설정
mysql> grant all privileges on DBname.* to 사용자아이디@localhost identified by '패스워드'; //로컬만 접속 허용
mysql> grant all privileges on DBname.* to 사용자아이디@'%' identified by '패스워드'; // 외부접속 허용
// 새로운 설정값 서비스에 반영하기
mysql> flush privileges;

댓글목록
등록된 댓글이 없습니다.