phpMyAdmin is a popular administration tool for MySQL and MariaDB. It is normally configured to disable login without a password due to security reasons.
To enable login to MySQL / MariaDB with no password in phpMyAdmin, you’ll need to configure AllowNoPassword option in phpMyAdmin’s configuration.
- Make sure your MySQL or MariaDB user is given an empty password.
- Open phpMyAdmin configuration file
config.inc.phpusing your preferred text editor. If it does not exist, copyconfig.sample.inc.phpthen rename it toconfig.inc.php. - Search for
AllowNoPasswordoptions and set the value totrue.1
$cfg['Servers'][$i]['AllowNoPassword'] = true;
- Save and exit the text editor.
- Log in again without a password.
Note: Tested on phpMyAdmin 5.2.1