How to Solve PHPMyAdmin Error: "Login Without a Password is Forbidden by Configuration (see AllowNoPassword)"
If you've encountered the PHPMyAdmin error message "Login without a password is forbidden by configuration," there's a straightforward solution.
This error typically arises when PHPMyAdmin is configured to require a password for login, but you need to access your MySQL databases without providing a password.
Here's how to resolve it:
- Access PHPMyAdmin Configuration:
Open your termux or command prompt and navigate to the directory where PHPMyAdmin is installed. In most cases, this is located in the directory.
cd /data/data/com.termux/files/usr/share/phpmyadmin
- Edit Configuration File:
Use a text editor to modify the PHPMyAdmin configuration file:
nano config.inc.php
- Allow No Password:
Inside the
config.inc.php
file, locate the line that specifies the authentication type:$cfg['Servers'][$i]['AllowNoPassword'] = false;
Change 'false' to 'true' to enable login without a password:
$cfg['Servers'][$i]['AllowNoPassword'] = true;
Save your changes and exit the text editor.
- Restart PHPMyAdmin:
To apply the new configuration, restart PHPMyAdmin by killing the PHPMyAdmin process:
pkill -f phpmyadmin
By following these steps, you should no longer encounter the "Login without a password is forbidden by configuration" error in PHPMyAdmin. You can now log in without providing a password as required.
Join the conversation