我也问个弱弱的问题:为何我修改密码后,数据库和config.inc.php都改了。重新启动mysql,然后打开mysql的管理界面,即 phpmyadmin 输入用户密码 却怎么也登入不进去 。这是为何呢?用户权限都选择y呢

解决方案 »

  1.   

    php鐨刴ysql杩炴帴搴撳瓨鍦ㄩ棶棰樺浜?.1浠ヤ笂鐗堟湰锛岃繛鎺ラ渶瑕侀珮鐗堟湰鐨刲ibmysql搴撴枃浠讹紝濡傛灉鏄湪linux鐜涓嬭鏇存柊mysql-client锛屽鏋滄槸windows鐜涓嬪彲浠ユ洿鏀规帀瀵嗙爜涓烘棫鐨刪ash鏍煎紡鎴栬€呭皢鏂扮殑lib搴撴浛鎹㈡帀Php鑷繁鐩綍涓殑鐩稿叧鏂囦欢(libmysql.dll),鍏充簬淇敼瀵嗙爜浣犲彲浠ュ湪google鎼滅储mysql php old_password绔嬪埢鍙互鎵惧埌绛旀
      

  2.   

    和config.inc.php
    改正确了?
      

  3.   

    都改了啊。 config.inc.php也改了  数据库的user表也改了。不知道问题出在那里
    localhost root   
    127.0.0% root 52b17c484346ef64 
    localhost      
    User表中这三个用户。我要用有密码的来登入 就登入不进去。
    $cfg['Servers'][$i]['host']          = '127.0.0.1'; // MySQL hostname
    $cfg['Servers'][$i]['port']          = '3306';          // MySQL port - leave blank for default port
    $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
    $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
    $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                        // (requires PHP >= 4.3.0)
    $cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
                                                        // (this user must have read-only
    $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
                                                        // and "mysql/db" tables)
    $cfg['Servers'][$i]['auth_type']     = 'http';    // Authentication method (config, http or cookie based)?
    $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
    $cfg['Servers'][$i]['password']      = 'test';          // MySQL password (only needed
                         
    config.inc.php 中配置是这样的。 问题出在那里呢?