mysql8.0建立用户受权

建立用户

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;
相关文章
相关标签/搜索