By katovonkatz
As I was following this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-18-04-server, I immediately got an error after this step in the first paragraph:
*Next, you’ll be prompted whether to use dbconfig-common for configuring the application database. Select Yes. *
This is the error:
mysql said: ERROR 1819 (HY000) at line 1: Your password does not satisfy the current policy requirements.
I find this quite odd, since I didn’t even enter a password yet. I think maybe this has something to do with me installing on Ubuntu 20.04 and not 18.04.
Any word of advice on how to proceed?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @katovonkatz,
It’s okay to use it on both Ubuntu 20.04 and 18.04. Having said that, can you let me know if this message appeared right after you ran the command
dbconfig-common
One other thing, before following this tutorial I take it you’ve had MySQL installed, did you run the
mysql_secure_installation
option then?
Regards, KFSys
A quick and incorrect solution is to remove MYSQL password validation, install phpmyadmin, then install password validation.
Step 1: Log into MYSQL as root and verify it’s installed with command: SHOW VARIABLES LIKE ‘validate_password%’; If it is, you will see something similar to below: ±-------------------------------------±------+ | Variable_name | Value | ±-------------------------------------±------+ | validate_password.check_user_name | ON | | validate_password.dictionary_file | | | validate_password.length | 6 | | validate_password.mixed_case_count | 1 | | validate_password.number_count | 1 | | validate_password.policy | LOW | | validate_password.special_char_count | 1 | ±-------------------------------------±------+
*Note - You may wish to copy this output so you can reconfigure the component when you reinstall it in step 4.
Step 2: Uninstall the validate_password component with command: UNINSTALL COMPONENT ‘file://component_validate_password’;
Step 3: Reinstall phpmyadmin.
Step 4: Install the validate_password component with command: INSTALL PLUGIN validate_password SONAME ‘validate_password.so’;
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.