MYSQL 계정 생성, 권한부여, 권한 삭제 1.사용자계정 생성mysql> create user 'userid'@'%' IDENTIFIED BY 'userpasswd'; 2.사용자에게 모든 것을 할 수 있는 권한 주기mysql> grant all privileges on *.* to 'userid'@'%'; 3.사용자에게 특정DB에 대한 권한 주기mysql> grant all privileges on dbname.* to 'userid'@'%'; 4.호스트명(localhost) client 접속 사용자 관리mysql> create user 'userId'@'localhost' identified by 'userpassword';mysql> grant all privileges on *.* to 'userid'@'localhost'; 5. 권한 부여 * 일반 사용자 권한 SELECT, INSERT, UPDATE, DELETE, INDEX,ALTER,CREATE, DROP, EXECUTE, CREATE ROU.......
↧