zoukankan      html  css  js  c++  java
  • mysql 操作

    修改账号密码

    http://www.jb51.net/article/39454.htm

    分配账号和权限

    grant select on wind.* to 'wind'@'%' identified by '!@#123abc';

    ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 密码等级不够

    show variables like 'validate%'

     

    grant select on wind.* to 'wind'@'%' identfied by 'Wind2017!@#';

    flush tables|logs|privileges;

     

     

    insert into mysql.user(Host,User,Password) values("localhost","phplamp",password("1234"));

    GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost'  IDENTIFIED BY 'some_pass' WITH GRANT OPTION; 

    DELETE FROM user WHERE User="phplamp" and Host="localhost";

    update mysql.user set password=password('新密码') where User="phplamp" and Host="localhost";

    连表更新

    update hangye_obj o left join hangye h on substr(h.code,1,4)=substr(o.hid,1,4) set o.hid=h.id

  • 相关阅读:
    “C语言” 读书札记(七)之[自白]
    代码审查就是在排大便——你懂的!
    page事件顺序(.net2.0)
    ASP.NET Custom Error Pages (asp.net自定义错误页)
    26字母中文第一字母排序
    16.448.10
    江西师范大学失物招领网(beta1)版告一段落
    处理HTML代码的若干函数
    Understanding the Session Object in ASP.NET 2.0
    获得扩展名[.net2.0]
  • 原文地址:https://www.cnblogs.com/zhaoguangjie/p/7416513.html
Copyright © 2011-2022 走看看