Jhunter

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            0 Posts :: 1 Stories :: 5 Comments :: 0 Trackbacks

          該錯誤只在windows系統上出現,據說這個錯誤已經存在n年了,有人 extremely dispointed that it still exists here in 2009!

          錯誤的原因更令人抓狂,那就是mysql server instance config wizard根本沒有為你設密碼,于是root密碼是空!實在不明白如果沒有為我設密碼那中間為什么叫我設個密碼。。。。。。。

          解決辦法:

          I clicked Skip on the dialog that states the Error 1045...
          Then cancelled the "MySQL Server Instance Config Wizard"

          Now...

          Open a command prompt (cd 到Mysql的bin目錄下)

          type "mysql -u root -p" then

          hit enter again when it requests a password.

          You should now have access to the mysql monitor...

          type the following at the prompts...

          mysql>use mysql
          mysql>select user, host, password from user;
          # Now you should see that u have 3 entries
          +-----------------------------+
          | user | host | password |
          +-----------------------------+
          | root | localhost | |
          | root | 127.0.0.1 | |
          | | localhost | |
          +-----------------------------+

          mysql> delete from user where host="localhost" and user="";
          mysql> update user set password=password("xxxx") where user="root";
          mysql> flush tables;
          mysql> flush privileges;
          mysql> quit

          Now the mysql table should be updated and everything fixed.

          Try it out...

          然后就可以用config wizard跑一遍了。。。

          posted on 2010-11-01 15:42 朱秀雀 閱讀(2678) 評論(5)  編輯  收藏

          Feedback

          # re: Mysql安裝1045錯誤解決 2011-04-05 22:12 fenggaie
          您試驗過這個說法嗎?不行的東西哦,拿出來沒意思哦!
            回復  更多評論
            

          # re: Mysql安裝1045錯誤解決 2011-06-10 16:40 愛愛愛
          可以的,多謝  回復  更多評論
            

          # re: Mysql安裝1045錯誤解決[未登錄] 2011-10-11 22:05 往事如風
          多謝!  回復  更多評論
            

          # re: Mysql安裝1045錯誤解決[未登錄] 2011-10-27 15:02 cj
          搞定了,我是win7家庭版,重裝mysql兩天了,終于按此方法搞定了,謝謝牛人共享經驗  回復  更多評論
            

          # re: Mysql安裝1045錯誤解決 2012-01-16 00:35 JacyJim
          果然有效果,非常非常的感謝。  回復  更多評論
            


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 崇文区| 广德县| 刚察县| 荃湾区| 云林县| 吉安市| 通渭县| 灵川县| 黎平县| 顺昌县| 无棣县| 连州市| 宝坻区| 陵川县| 兰溪市| 嘉善县| 塘沽区| 黄陵县| 高碑店市| 阿合奇县| 庄浪县| 桂平市| 湖南省| 拜泉县| 贡嘎县| 驻马店市| 岱山县| 广安市| 福州市| 时尚| 获嘉县| 神木县| 微博| 宜黄县| 贵港市| 平果县| 高陵县| 星座| 溧阳市| 通化县| 海林市|