zoukankan      html  css  js  c++  java
  • mysql权限设置

    添加用户访问权限

    grant all on sonardb.* to sonar@'%' identified by '123456';

    sonardb:数据库名称,也可以为‘*’代表所有数据库。

    sonar:指定用户名。

    %:代表所有远程机器,也可以指定远程机器IP地址。

    ----------------------------------------------------------------

    删除用户访问

    delete from user where user='sss' and host='localhost' ;
    sss:用户名称。

    localhost:访问权限

    ----------------------------------------------------------------

    flush privileges ;

    更新权限表。

    ----------------------------------------------------------------

    删除用户权限

    revoke all on *.* from sss@localhost ;

     

  • 相关阅读:
    BSGS
    聪聪可可(未完成)
    强连通分量,缩点
    bozj 1823(未完成)
    网络流
    bzoj1026
    点分治 poj1741
    bzoj 3270 博物馆
    高斯消元 模板
    bzoj 3143 [Hnoi2013]游走
  • 原文地址:https://www.cnblogs.com/jdonson/p/1741107.html
Copyright © 2011-2022 走看看