zoukankan      html  css  js  c++  java
  • Got error: 1045:

    错误日志

    [root@gaosheng ~]# mysqlcheck arcerdb t1;
    mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
    [root@gaosheng ~]# mysql
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

    解决方案:

    [root@gaosheng ~]# mysql -uroot -parcerzhang
    Welcome to the MySQL monitor.  Commands end with ; or g.
    Your MySQL connection id is 8
    Server version: 5.0.77-log Source distribution
    
    Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
    
    mysql> use mysql;
    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A
    
    Database changed
    mysql> set passwrod for 'root'@'localhost' = password('');
    ERROR 1193 (HY000): Unknown system variable 'passwrod'
    mysql> set password for 'root'@'localhost' = password('');
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> flush privileges;
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> exit
    Bye
    [root@gaosheng ~]# mysqlcheck arcerdb t1;
    arcerdb.t1                                         OK
    [root@gaosheng ~]# 
  • 相关阅读:
    第二次结对编程作业
    第5组 团队展示
    第一次结对编程作业
    BETA 版冲刺前准备(团队)
    项目测评(团队)
    1111111111
    Alpha 事后诸葛亮
    Alpha 冲刺 (10/10)
    Alpha 冲刺 (9/10)
    Alpha 冲刺 (8/10)
  • 原文地址:https://www.cnblogs.com/arcer/p/3721631.html
Copyright © 2011-2022 走看看