phpmyadmin修改密碼後無法登入,怎辦? ZT

來源:互聯網
上載者:User
phpmyadmin修改密碼後無法登入,怎辦?2007-09-11 12:00From:http://community.csdn.net/Expert/TopicView3.asp?id=5720922
Author:guitar_men

問題:
程式中按修改後的密碼可以訪問資料庫,對資料庫操作沒有問題。
問題是:我不能再向以前一樣直接登入phpmyadmin管理資料庫。
開啟phmyadmin時出現以下介面:

歡迎使用 phpMyAdmin 2.8.0.2

Probably reason of this is that you did not create configuration file. You might want to use setup script to create one.

錯誤
MySQL 返回:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

Open new phpMyAdmin window

回答:
phmyadmin的配置密碼也要修改在config.inc.php裡你找找

已解決,方法如下:
如果找到config.inc.php直接修改密碼;
如果找不到,自己建立config.inc.php檔案放在第一輯檔案夾下:
<?php
$cfg['PmaAbsoluteUri'] = "http://127.0.0.1/phpMyAdmin-2.8.0.2/";
$cfg['Servers'][1]['host'] = "localhost";
$cfg['Servers'][1]['auth_type'] = 'config';
$cfg['Servers'][1]['user'] = "root";
$cfg['Servers'][1]['password'] = "你的新密碼";
?>

【筆者更新-20100409】

1,phpmyadmin修改密碼後無法登入,有可能phpmyadmin對mysql密碼修改不成功,直接使用原密碼即可登陸。
mysql重新設定密碼:
mysql>use mysql
mysql>set password for 'root'@'localhost'=password('newpasswd');
mysql>set password for 'root'@'%'=password('newpasswd');

2,也有可能是自己對剛修改的密碼忘記了。請參考:mysql忘記密碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.