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 ~]# 
  • 相关阅读:
    Android 禁用以及捕捉home键
    android中正确导入第三方jar包
    使用SharedPreferences进行数据存储
    tomcat不安全因素
    spring边边角角
    宏定义
    C++变量对比java变量所占内存
    结构指针的分析
    对结构使用指针
    什么是程序文件?
  • 原文地址:https://www.cnblogs.com/arcer/p/3721631.html
Copyright © 2011-2022 走看看