사용자 권한1 mysql 사용자 추가 DB 권한부여 # User DB 확인 SELECT HOST,USER,PLUGIN,authentication_string FROM mysql.user; # 로컬에서 접속 가능한 사용자 추가하기 create user '사용자'@'localhost' identified by '비밀번호'; #로컬 접속 DB 모든 권한 부여하기 (localhost) # 모든 DB에 권한 부여 $ grant all privileges on *.* to '사용자'@'localhost'; # 특정 DB에 권한 부여 $ grant all privileges on `DB이름`.* to '사용자'@'localhost'; #원격지 접속 DB 모든 권한 부여하기 '%', '특정 아이피 ' (remote host) $ grant all privileges o.. 2018. 9. 18. 이전 1 다음 728x90