Black Friday Hosting Deals: 69% Off + Free Migration: Grab the Deal Grab It Now!
phpMyAdmin is commonly known as web server-based tool intended for MySQL and MariaDB databases administration. It offers a user-friendly panel for data engineering tasks like tables, databases, and data maintenance. Nevertheless this situation might seem to be the case when willing to make a sign-in to the phpMyAdmin interface. This is an error you may find frustrating and with time you will probably be unable to access your databases and control them due to the error.
Thus, in this knowledgebase, we analyze the reasons for "Password is Forbidden" error and the methodical solutions to fix the issue.
Such types of errors as "Password is Forbidden" most frequently happen when phpMyAdmin configs (config.inc.php) disallow some passwords or password authentication categories. The lockdown is done as the security measure that is used when the use of weak or simply guessable passwords is determined with the significant risk the security of your databases face.
The list of possible reasons for "Password is Forbidden" error in phpMyAdmin includes some of the below mentioned factors:
Password Policy in phpMyAdmin Configuration: By configuration default phpMyAdmin has a parameter that disallows creation of certain types of passwords viz. short passwords, passwords including own name, or easily guessed passwords.
Server Configuration: For example, if the server setup has a limitation on the type of password, or if the user has reached the number of failed attempts to enter the password, conflict can arise, and "Password is Forbidden" error will occur.
MySQL/MariaDB Password Authentication: The problem can also be occured due a discrepancy between the MySQL/MariaDB server using an authentication method which is not in line with the phpMyAdmin options.
Let's look at couple different approaches that you can go for to sort out the "Password is Prohibited" error in phpMyAdmin. We take the core ones, and we'll be talking about how to use them correctly.
Among the easiest will be altering the phpMyAdmin nfiguration file ( config.inc.php) to authorize the use of your custom password.
Go the directory where PHPMyAdmin is located on the server.
Head to the config.inc.php file and create a full-back up to ensure alleviating files from any fatalities.
Go ahead and open the config.inc.php file with your text editor of choice.
Find the sentence below:
$cfg['BlowfishSecret'] = ''; /* YOU SHOULD CHANGE THIS FOR A PERMANENT INSTALLATION */
$cfg['Servers'][$i]['AllowNoPassword'] = false;
In the $cfg['BlowfishSecret'] statement, edit the string so that there will be a completely unique key or string. In the quotation, the key means for encrypting the passwords in phpMyAdmin.For example:
$cfg['BlowfishSecret'] = 'YourUniqueSecretKey';
Configure $cfg['Servers'][$i]['AllowNoPassword'] to true for enabling blank/empty passwords.
Save and close the file and changes made.
Restart the HTTP server or PHP modules to have the effects of the changes be applied.
After the modification suggested, you should sign in to phpMyAdmin using the password you have selected and it should no longer show the "the password is forbidden" message.
If changing the phpMyAdmin configuration doesn't help, it might be necessary to make PHP/MariaDB password authentication method up to date, because there are changing demands for phpMyAdmin purpose.
To connect to your MySQL/MariaDB database server via the command line or with a MySQL client tool, use this command.
Execute this SQL queries to retrieve the certificate validation method.
SELECT User, Host, plugin FROM mysql.user;
If the plugin showing in the row Auth_socket for your user, it follows that you need to edit it as mysql_native_password. To execute the next query, see the following SQL script using your_username and your_hostname instead of your actual:
UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE User = 'your_username' AND Host = 'your_hostname';
Privileged account is decouple from the persistent storage to help the ornament of the changes:
FLUSH PRIVILEGES;
Exit the MySQL/Maria DB CLI or the client utility.
Try logging back in by entering the username and password again. As a last step you must update the authentication method. The problem that to "Password is Forbidden" should be avoided.
Provided that the issue persists, your server configurations may had enforced a certain set of password policies and restrictions. Here, you'll have to check your server configuration files (e.g. Apache, Nginx configuration files) and do all the necessaries adjustments to allow given password(s).
In line with your case, this solution’s particular steps may potentially look different based on the hardware configuration and integration of your server setup. You might have to observe your configuration, found the server documentation or ask from your hosting provider or system administrator.
If the console given above won't resolve your "System Memory is Forbidden" error as well as previous described steps, try this additional troubleshooting approaches.:
Clear your browser cache and cookies, then try logging in to phpMyAdmin which should work for you.
Turning off the browser extensions or addins which might be the reason of the phpMyAdmin problem.
Check error logs for error messages that will help in pinpointing the fault, if you did not get any information from phpMyAdmin error logs.
Make sure your MySQL/MariaDB server processes and are running on server where phpMyAdmin is going to be hosted.
If you're actually using a shared hosting environment, then its better to contact the hosting provider for assistance as they can help you with specific configurations, besides restrictions that may be in place.
Thus, if you implement these solutions and fix these issues given, you should be able to overcome the "Password is Forbidden" error in phpMyAdmin and resume access to your databases.
Please don't forget to use proper password security methods, even when dealing with service configurations. You should make use of the long and unique passwords, two-factor authentication if you can, and regularly update your passwords. This is will ensure the safety of your database and systems as well.
Let’s talk about the future, and make it happen!
By continuing to use and navigate this website, you are agreeing to the use of cookies.
Find out more