zoukankan      html  css  js  c++  java
  • MySQL用户密码修改

    MySQL用户密码修改
     
    第一种方法:(推荐使用)
    mysql> alter user root@'localhost' identified by '123';
    mysql> flush privileges;
     
    第二种方法:
    mysql> set password=PASSWORD('123');
    mysql> flush privileges;
     
    mysql> set password for root@localhost=password('123');
    mysql> flush privileges;
     
    第三种方法:
    mysql> use mysql;
    mysql> update user set password=password('123') where user='root' and host='localhost';
    mysql> flush privileges;
     
    mysql> use mysql;
    mysql> update user set authentication_string=password('123') where user='root' and host='localhost';
    mysql> flush privileges;
     
    第四种方法:
    [root@db01 ~]# mysqladmin -uroot -p123456 password 123
    
    第五种方法:
    mysql> grant all on *.* to root@'10.0.0.%' identified by '123';
    mysql> flush privileges;
    
    第六种方法:
    在创建用户的时候赋予密码
    mysql> create user 'win7'@'10.0.0.%' identified by '123';
  • 相关阅读:
    与HDFS交互- By java API编程
    与HDFS交互- By web界面
    与HDFS交互-By shell命令
    hadoop下HDFS基本命令使用
    ubuntu安装hadoop经验
    HTTP状态码了解
    软件需求与分析
    软件需求与分析
    软件需求与分析
    浪潮之巅
  • 原文地址:https://www.cnblogs.com/zhouwanchun/p/11091699.html
Copyright © 2011-2022 走看看