Jhunter

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            0 Posts :: 1 Stories :: 5 Comments :: 0 Trackbacks

          該錯(cuò)誤只在windows系統(tǒng)上出現(xiàn),據(jù)說這個(gè)錯(cuò)誤已經(jīng)存在n年了,有人 extremely dispointed that it still exists here in 2009!

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

          解決辦法:

          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 朱秀雀 閱讀(2680) 評(píng)論(5)  編輯  收藏

          Feedback

          # re: Mysql安裝1045錯(cuò)誤解決 2011-04-05 22:12 fenggaie
          您試驗(yàn)過這個(gè)說法嗎?不行的東西哦,拿出來沒意思哦!
            回復(fù)  更多評(píng)論
            

          # re: Mysql安裝1045錯(cuò)誤解決 2011-06-10 16:40 愛愛愛
          可以的,多謝  回復(fù)  更多評(píng)論
            

          # re: Mysql安裝1045錯(cuò)誤解決[未登錄] 2011-10-11 22:05 往事如風(fēng)
          多謝!  回復(fù)  更多評(píng)論
            

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

          # re: Mysql安裝1045錯(cuò)誤解決 2012-01-16 00:35 JacyJim
          果然有效果,非常非常的感謝。  回復(fù)  更多評(píng)論
            


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 郎溪县| 隆子县| 定南县| 寻乌县| 黑龙江省| 彰化县| 本溪市| 巫山县| 农安县| 忻城县| 陆良县| 溧阳市| 颍上县| 界首市| 滨海县| 辽源市| 正定县| 巨鹿县| 马边| 犍为县| 雷州市| 龙海市| 南投市| 阳东县| 长兴县| 育儿| 甘洛县| 南召县| 韶关市| 锡林郭勒盟| 东宁县| 英吉沙县| 邵阳市| 贺兰县| 阜宁县| 博爱县| 黔南| 铜陵市| 漳浦县| 三门县| 阳信县|