开发者社区> 问答> 正文

(using password: YES):报错

MySQL5.6 安装之后,连接不上ERROR 1045 (28000): (using password: YES):报错

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

可以ping通

用mysqld -nt --skip-grant-tables 修改过密码。也是可以的。但是修改完之后,还是1045

求解。@红薯 求大哥指点。

展开
收起
kun坤 2020-06-06 11:52:16 1145 0
1 条回答
写回答
取消 提交回答
  • 看看这篇文章能不能解决你的问题。

    http://blog.csdn.net/wentasy/article/details/7964369

    ######C:\Users\Ethan.Yang>mysql
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 1
    Server version: 5.6.10 MySQL Community Server (GPL)

    Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.

    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

    mysql> grant all on mysql.* to 'root'@'localhost' identified by 'root';
    ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

    mysql>

    @Wentasy 这样也有问题。

    ######

    直接mysql -uroot -p 然后enter.

    原因一开始root是没有密码。

    ######现在已经有密码了######

    root已经有密码了。

    当我用mysqld -nt --skip-grant-tables之后,用Mysql Query Browser就能登陆进去了,然后查询到结果。

    但是如果不用这个,就是登录不上。

    ######不用远程 用phpmyadmin试试######那就不清楚了…重新安装试试吧…######不是远程,就是本地安装了mysql,本地上不去。
    2020-06-06 11:52:22
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
StreamlineHadoopDevOpswith Apa 立即下载
你好,Pal 立即下载
SparkOscope 立即下载