zoukankan      html  css  js  c++  java
  • 数据库上手避坑之--修改sql的root密码

    [developRos nication]# mysqladmin -u root -p flush-privileges password      //使用命令修改系统
    Enter password: 
    [developRos nication]# mysql -u root -p                              //使用老密码登陆
    Enter password: 
    Welcome to the MariaDB monitor.  Commands end with ; or g.
    Your MariaDB connection id is 4
    Server version: 10.5.8-MariaDB Arch Linux
    
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
    
    Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
    
    MariaDB [(none)]> q                                          //用q退出
    Bye
    [developRos nication]# mysql -u root -p                               //使用老密码登陆
    Enter password: 
    Welcome to the MariaDB monitor.  Commands end with ; or g.
    Your MariaDB connection id is 5
    Server version: 10.5.8-MariaDB Arch Linux
    
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
    
    Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
    
    MariaDB [(none)]> exit                                        //用exit退出或者执行mysqladmin -u root -p flush-privileges刷新也可以
    Bye
    [developRos nication]# exit
    exit
     nication � ~ � mysql -u root -p                                  //使用新密码登陆
    Enter password: 
    ERROR 1698 (28000): Access denied for user 'root'@'localhost'
     nication � ~ � mysql -u root -p
    Enter password: 
    Welcome to the MariaDB monitor.  Commands end with ; or g.
    Your MariaDB connection id is 7
    Server version: 10.5.8-MariaDB Arch Linux
    
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
    
    Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
  • 相关阅读:
    C#注意事项
    组件化开发
    kettle导数删除并插入更新数据_20161130
    MySQL_各城市在线产品天订单数据20161130
    MySQL_杭州11月1-29号在线产品在线天数、销售天数_20161129
    kettle每天自动发送邮件总结_20161128
    MYSQL_与excel结合在excel中用&连接符快速创建表头_20161125
    MySQL_杭州拱墅区、西湖区近9-11月销售过的产品_20161125
    MySQL_产品昨日库存与历史入库历史出库成本_20161124
    MySQL11月16-11月21日活动赠送的优惠券使用率_20161124
  • 原文地址:https://www.cnblogs.com/guochaoxxl/p/14028659.html
Copyright © 2011-2022 走看看