• 基本指令6---GRANT


    GRANT:给用户授权  

      1、create USER ‘用户名’@‘IP地址’ identified by ‘密码’                   创建用户
      2、grant + (all则是所有权限)/权限 on 库.表 to + ‘用户名’@‘IP地址’          给用户授权
      3、revoke + (all则是所有权限)/权限 on 库.表 from ‘用户名’@‘IP地址’          删除用户权限
      4、set PASSWORD = PASSWORD('密码')                       给本地用户修改密码
      5、set PASSWORD for ‘用户名’@‘IP地址’ = PASSWORD('密码')             修改用户密码
      6、drop USER ‘用户名’@‘IP地址’                           删除用户

      7、rename user '用户名'@'IP地址' to '新用户名'@'IP地址'                修改用户名          

  • 相关阅读:
    OSCP Learning Notes
    OSCP Learning Notes
    OSCP Learning Notes
    OSCP Learning Notes
    OSCP Learning Notes
    OSCP Learning Notes
    OSCP Learning Notes
    OSCP Learning Notes
    Codeforces Round #601 (Div. 2) E2 Send Boxes to Alice (Hard Version)
    Codeforces Round #601 (Div. 2) E1 Send Boxes to Alice (Easy Version)
  • 原文地址:https://www.cnblogs.com/xwxxh/p/12654800.html
Copyright © 2020-2023  润新知