mysql创建用户并分配到某个数据库上

create user 'kent'@'%' identified by 'kentpassword';
create user 'kent'@'localhost' identified by 'kentpassword';
grant all privileges on kentdb.* to 'kent'@'%' with grant option;
grant all privileges on kentdb.* to 'kent'@'localhost' with grant option;


Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.