I have downloaded the latest version of phpmyadmin. but now I cannot login to phpmyadmin. What is the default username and password of it? While I tried username and password as root and blank then it say #2002 Cannot log in to the MySQL server
You can check your username and password by using this command:
sudo -H gedit /etc/dbconfig-common/phpmyadmin.conf
Find the lines below:
dbc_dbuser='yyy'
dbc_dbpass='zzz'
yyy is username and zzz is your password.
Edit phpmyadmin/config.inc.php
$cfg['Servers'][$i]['host'] = 'localhost';
to
$cfg['Servers'][$i]['host'] = '127.0.0.1';
Note:if you installed fresh then, config.inc.php may not exist. You need to rename / copy config.sample.inc.php and then change the relevant line.
phpMyAdmin的默认用户名是“ root”,密码是“ root”;)
用户名是root,密码是您的sql的密码,但是最好确保不要在sql server中使用root停止远程登录。
The default username of phpMyAdmin is "root". and the password is "admin"
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.