Short commands
create user 'root'@'%' identified by 'root';
grant all privileges on *.* to 'root'@'%';Creating a user
create user '사용자'@'localhost' identified by '비밀번호';
create user '사용자'@'192.168.0.1' identified by '비밀번호';
create user '사용자'@'192.168.0.%' identified by '비밀번호';Database privileges
grant all privileges on *.* to '사용자'@'localhost';
grant all privileges on DB이름.* to '사용자'@'192.168.0.%';
grant all privileges on DB이름.TABLE이름 to '사용자'@'192.168.0.%';
Dropping a user
drop user '사용자'@'localhost';
drop user '사용자'@'192.168.0.%';
Comments 0
A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.