创建用户

     MySQL [(none)]> create user 'ops'@'%' identified by 'ops12300.';
       Query OK, 0 rows affected (0.01 sec)

授权

    MySQL [(none)]> grant all privileges on *.* to 'ops'@'%';
       Query OK, 0 rows affected (0.00 sec)
    MySQL [(none)]> flush privileges;
       Query OK, 0 rows affected (0.00 sec)

删除用户

   MySQL [mysql]> drop user 'ops'@'%';
   MySQL [mysql]> flush privileges;