zoukankan      html  css  js  c++  java
  • mysql删除账户

    mysql> select user,host,password from user;
    +------+-----------+-------------------------------------------+
    | user | host      | password                                  |
    +------+-----------+-------------------------------------------+
    | root | localhost | *CCD57A2A8F39637CB3628862444F4D1CAD7A76FC |
    | root | appsrv130 |                                           |
    | root | 127.0.0.1 |                                           |
    |      | localhost | *CCD57A2A8F39637CB3628862444F4D1CAD7A76FC |
    |      | appsrv130 |                                           |
    | root | %         | *CCD57A2A8F39637CB3628862444F4D1CAD7A76FC |
    +------+-----------+-------------------------------------------+
    6 rows in set (0.00 sec)
    
    mysql> delete from user where user="";
    Query OK, 2 rows affected (0.00 sec)
    mysql> select user,host,password from user;
    +------+-----------+-------------------------------------------+
    | user | host      | password                                  |
    +------+-----------+-------------------------------------------+
    | root | localhost | *CCD57A2A8F39637CB3628862444F4D1CAD7A76FC |
    | root | appsrv130 |                                           |
    | root | 127.0.0.1 |                                           |
    | root | %         | *CCD57A2A8F39637CB3628862444F4D1CAD7A76FC |
    +------+-----------+-------------------------------------------+
    4 rows in set (0.00 sec)
    
    mysql> delete from user where user="root" and host="appsrv130";
    Query OK, 1 row affected (0.00 sec)
    
    mysql> delete from user where user="root" and host="127.0.0.1";
    Query OK, 1 row affected (0.00 sec)
    
    mysql> select user,host,password from user;
    +------+-----------+-------------------------------------------+
    | user | host      | password                                  |
    +------+-----------+-------------------------------------------+
    | root | localhost | *CCD57A2A8F39637CB3628862444F4D1CAD7A76FC |
    | root | %         | *CCD57A2A8F39637CB3628862444F4D1CAD7A76FC |
    +------+-----------+-------------------------------------------+
    2 rows in set (0.00 sec)
  • 相关阅读:
    mysql explain语句各项含义
    group_concat用法以及字符串太长显示不全
    合并两个word文档,保持样式不变
    读取word模板,填充数据后导出
    java获取配置文件信息
    mysql5.6免安装使用
    时间格式转换
    Mysql中(@i:=@i+1)的作用
    SVN服务器搭建和使用(一)
    按需讲解之Supervisor
  • 原文地址:https://www.cnblogs.com/bass6/p/6420186.html
Copyright © 2011-2022 走看看