`
Arron.li
  • 浏览: 134271 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

ERROR Nr.1045

阅读更多

1 问题: 安装mysql时在最后安装过程中,最后执行“Apply security setting”弹出ERROR Nr.1045错误。

 

2 环境: windows xp sp2,防火强已经关闭,可以telnet localhost 3306

 

3 在网上解决方案:

WINDOWS:
方法

      1.以系统管理员身份登陆系统。
      2.打开cmd-----net start 查看mysql是否启动。启动的话就停止net stop mysql.
  3.我的mysql5安装在D:\MySQL\MySQL Server 5.0下。
  4.跳过权限检查启动mysql.
  D:\MySQL\MySQL Server 5.0\bin\mysqld-nt --skip-grant-tables
  5.重新打开cmd。进到D:\MySQL\MySQL Server 5.0\bin下:
  D:\MySQL\MySQL Server 5.0\bin\mysqladmin -uroot flush-privileges password "newpassword"
  D:\MySQL\MySQL Server 5.0\bin\mysqladmin -u root -p shutdown  这句提示你重新输密码。
  6.在cmd里net start mysql
  7.搞定了。

使用上诉方案在step 5还是无法重置密码。

 

4 最终解决方案:

    1.手动停止mysql服务。

    2.修改D:\MySQL\MySQL Server 5.0\ 目录下的my.ini文件,在[mysqld]下添加
    skip-grant-tables

    3.启动mysql服务后就可以以空密码登录

    4.务必修改root密码

    5.把 skip-grant-tables 这一句删掉(在D:\MySQL\MySQL Server 5.0\ 目录下的my.ini文件)

    6.重启mysql服务。

    7.成功登录.

 

5 总结:

遇到问题要迎难而上,多参考下网上提供的参考,结合自己的实际情况进行测试,最后解决。

 

6 遗留问题:

尽管问题解决了,但是我不知道我为什么手动修改 my.ini文件,在[mysqld]下添加
  skip-grant-tables才可以,而通过命令行 却无法办到,无法跳过权限检查,请各位读者给出一些建议或参考

0
0
分享到:
评论

相关推荐

    解决mysql安装时出现error Nr.1045问题的方法

    主要为大家详细介绍了解决mysql安装时出现error Nr.1045问题的方法,感兴趣的小伙伴们可以参考一下

    安装高版本mysql、解决error 2003、error nr.1364

    安装高版本mysql、解决error 2003、error nr.1364 安装高版本mysql、解决error 2003、error nr.1364

    mysql配置时提示error nr.2003 can't connec

    mysql配置时提示error nr.2003 can't connect to mysql server on 'localhost'(10061).doc

    mysql安装失败

    Error Nr. 1045 Access denied for user 'root'@'localhost' (using password: YES) If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for connections. ...

    NR5G网络拒绝码-5gmm_cause = 111 (Protocol error, unspecified).docx

    从3GPP协议和UE端行为分析5G gmm cause #111的网络问题

    光传送网通信协议-G.709

    6.1.3 Reduced functionality OTM nr.m and OTM 0.m structure 20 6.2 Information structure for the OTN interfaces 20 7 Multiplexing/mapping principles and bit rates 24 7.1 Mapping 26 7.2 Wavelength ...

    光网络通信协议-g.709

    6.1.3 Reduced functionality OTM nr.m and OTM 0.m structure 20 6.2 Information structure for the OTN interfaces 20 7 Multiplexing/mapping principles and bit rates 24 7.1 Mapping 26 7.2 Wavelength ...

    NR网络拒绝码-5gmm_cause = 15(No suitable cells in tracking area).docx

    从3GPP协议和UE端行为分析5G gmm cause #15的网络问题

    Linux使用vim编辑文件保存时报E514:write error (file system full?)问题解决

    最近在用vi编辑文档,保存的时候,提示如下错误:E514: write error (file system full?),所以这篇文章主要给大家介绍了关于Linux使用vim编辑文件保存时报E514:write error (file system full?)问题的解决方法,...

    HA.PEiD.0.95

    The scanner's inbuilt scanning techniques have error control methods which generally ensure correct outputs even if the last mode is chosen. The first two methods produce almost instantaneous outputs ...

    PEiD0.95.zip

    The scanner's inbuilt scanning techniques have error control methods which generally ensure correct outputs even if the last mode is chosen. The first two methods produce almost instantaneous outputs ...

    linux驱动学习去开发入门

    我这个实验除了对参数的改变进行实验外,我的一个重要的目的是测试“ module_param_array(TNparam , int , &TNparam_nr , S_IRUGO);”中&TNparam_nr对输入参数数目的限制作用。经过我的实验,表明&TNparam_nr并没有...

    雷达技术知识

    关于雷达方面的知识! EFFECTIVENESS OF EXTRACTING WATER SURFACE SLOPES FROM LIDAR DATA WITHIN THE ACTIVE CHANNEL: SANDY RIVER, OREGON, USA by JOHN THOMAS ENGLISH A THESIS Presented to the Department ...

    基于mediastreamer2的网络电话实现流程以及源码库

    于是:#grep "rpl_malloc" -nR * ....... 找到了,原来这两个变量是在这个config的文件中的。是一个宏开关 那么就好办了,我们就直接把这两个宏进行注释。 嗯嗯,继续。。。我们重新编译json库。。。嗯嗯编译好了,...

    Nrf51822程序错误快速定位方法

    在nordic51822中经常出现软件复位情况的快速解决方式,程序中APP_ERROR_CHECK(err_code)的错误调试方法

    HAPEiD_jb51

    The scanner's inbuilt scanning techniques have error control methods which generally ensure correct outputs even if the last mode is chosen. The first two methods produce almost instantaneous outputs ...

    aes.zip_AES_AES mixcolumns_CRijndael_mixcolumns_密码学报告

    int Nk,Nr,round long Total_Round,Cur_Round char *SourceFileName,*TargetFileName CString source,*target,save CFile Source,Target byte (* State)[4],*w[4],*key[4] public: CString Error...

    linux-0.11 [内核源代码带英文注解]

    void main(void) /* This really IS void, no error here. */ { /* The startup routine assumes (well, ...) this */ /* * Interrupts are still disabled. Do necessary setups, then * enable them */ ...

Global site tag (gtag.js) - Google Analytics