简体   繁体   中英

error in mysql user password

I am using Ubuntu 10.10 and I installed phpmyadmin from synaptic package manager.

But i did not put any password on mysql root user and phpmyadmin user.

Later, i tried to log into phpmyadmin with user root and no password it get error

Login without a password is forbidden
by configuration (see AllowNoPassword)

And chage password in mysql is not working, I tried to update password using password('pma') in passsword field in user table of mysql database, but still I am not being able to log in from console.

How to change mysql password, and where is this phpmyadmin configuration file.

I'm not sure about the larger problem, but phpMyAdmin's configuration file is stored in phpMyAdmin/config.inc.php . The username and password can be found on line 85:

85  $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
86  $cfg['Servers'][$i]['password']      = 'root';      // MySQL password (only needed
87                                                      // with 'config' auth_type)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM