隨筆 - 0, 文章 - 264, 評論 - 170, 引用 - 0
          數(shù)據(jù)加載中……

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

          mysql -u root -p

          Then I created a new user bill with host %

          CREATE USER 'bill'@'%' IDENTIFIED BY 'passpass';

          Granted all the privileges to user bill:

          grant all privileges on . to 'bill'@'%' with grant option;

          Then I exit from root user and try to login with bill:

          mysql -u bill -p

          entered the correct password and got this error:

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


          錯誤原因:
          mysql.user表中存在一條user=''的記錄,導(dǎo)致登錄時首先匹配到這條記錄,所以無法登錄。

          解決辦法:
          刪除掉這條用戶記錄,即操作語句:DELETE FROM mysql.user where user='';

          posted on 2014-11-08 14:15 小一敗涂地 閱讀(870) 評論(0)  編輯  收藏 所屬分類: 數(shù)據(jù)庫(oracle、mysql、sql server等)相關(guān)

          主站蜘蛛池模板: 滨州市| 锡林浩特市| 伊春市| 双辽市| 泸定县| 名山县| 哈尔滨市| 河池市| 文登市| 利津县| 辽中县| 施秉县| 罗江县| 敦化市| 延吉市| 会东县| 茂名市| 河间市| 马龙县| 广灵县| 贵定县| 肃宁县| 华容县| 抚宁县| 诏安县| 湟中县| 深州市| 白山市| 苏尼特左旗| 邵东县| 乐业县| 儋州市| 临潭县| 类乌齐县| 通河县| 新乐市| 伊宁县| 安乡县| 牡丹江市| 敦煌市| 广饶县|