zoukankan      html  css  js  c++  java
  • ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

    mysql下载
    https://dev.mysql.com/downloads/mysql/

    安装(2017/7/15密码备注)
    2017-07-15T12:34:00.915814Z 1 [Note] A temporary password is generated for root@localhost: o_Lw=gv3g(4s
    发现按照网上大家说的,我输入以上密码一点用都没有。

    登录:
    bogon:~ liuw$ mysql
    ERROR 1045 (28000): Access denied for user 'liuw'@'localhost' (using password: NO)
    这时候需要利用上一步密码改简单密码

    这个人说的最有效果:http://www.cnblogs.com/vector11248/p/6680509.html

    做法:
    去系统偏好设置停止mysql
    然后cd /usr/bin
    然后 sudo mysqld_safe --skip-grant-tables
    然后打开一个新的终端 mysql
    然后use mysql;
    然后UPDATE user SET authentication_string=PASSWORD('YOUR_NEW_PASSWORD_HERE') WHERE user = 'root';
    然后exit;
    就搞定了!

    NND,第二天打开又提示什么 ERROR 1820 (HY000): You must reset your password 。。。

    修改方法:在mysql登录进去后

    SET PASSWORD = PASSWORD('1234');

    参考:http://blog.sina.com.cn/s/blog_7d553bb50102w9rb.html

    此文仅为鄙人学习笔记之用,朋友你来了,如有不明白或者建议又或者想给我指点一二,请私信我。liuw_flexi@163.com/QQ群:582039935. 我的gitHub: (学习代码都在gitHub) https://github.com/nwgdegitHub/
  • 相关阅读:
    P3241 [HNOI2015]开店 动态点分治
    P4199 万径人踪灭 FFT + manacher
    P4173 残缺的字符串
    P3338 [ZJOI2014]力
    CF1005F Berland and the Shortest Paths
    CF567E President and Roads
    P2446 [SDOI2010]大陆争霸
    CF1082G Petya and Graph
    CF1082E Increasing Frequency
    直接查数据导出xls
  • 原文地址:https://www.cnblogs.com/liuw-flexi/p/6929252.html
Copyright © 2011-2022 走看看