CREATE USER 'dog'@'localhost' IDENTIFIED BY '123456';
CREATE USER 'pig'@'192.168.1.101_' IDENDIFIED BY '123456';
CREATE USER 'pig'@'%' IDENTIFIED BY '123456';
CREATE USER 'pig'@'%' IDENTIFIED BY '';
CREATE USER 'pig'@'%';
显示mysql用户 SELECT User, Host FROM mysql.user;
授予用户权限 GRANT privileges ON databasename.tablename TO ‘username’@‘host’