How To Change a MySQL Database User’s Password in cPanel

This tutorial assumes you’ve already logged in to cPanel, and are starting on the home screen. Let’s learn how to change a database users password.

  1. Click the “MySQL Databases” icon.cpanel-pl-mysql-6-chguserpass-02
  2. Locate the user whose password you want to change, and click “Set Password”.cpanel-pl-mysql-6-chguserpass-03
  3. Enter and confirm a new password, then click “Change Password”.cpanel-pl-mysql-6-chguserpass-04
  4. That’s it! The database user’s password has been changed.cpanel-pl-mysql-6-chguserpass-05


How To Change Your cPanel Password

  1. This tutorial assumes you’ve already logged in to cPanel, and are starting on the home screen.cpanel-paperlantern-10-password--01
  2. Now let’s learn how to change the cPanel password.cpanel-paperlantern-10-password--02
  3. Click the “Change Password” icon.cpanel-paperlantern-10-password--03
  4. First enter your old, or existing password.cpanel-paperlantern-10-password--04
  5. Then enter and confirm a new password.cpanel-paperlantern-10-password--05
  6. Click “Change your password now”.cpanel-paperlantern-10-password--06
  7. That’s it! The cPanel password has been changed.


How To Password Protect a Directory in cPanel

  1. This tutorial assumes you’ve already logged in to cPanel, and are starting on the home screen.  Let’s learn how to password protect a directory.cpanel-paperlantern-18-protect--01
  2. Click the “Directory Privacy” icon.cpanel-paperlantern-18-protect--02
  3. Select the directory to start with, then click “Go”.cpanel-paperlantern-18-protect--03
  4. Select the directory you want to password protect by clicking its name.cpanel-paperlantern-18-protect--04
  5. Check the “Password Protect” box, then give a name for the directory, and click “Save”.cpanel-paperlantern-18-protect--05
  6. The directory is now protected and requires a password to enter it via a browser.cpanel-paperlantern-18-protect--06
  7. We must, therefore, create at least one user, and assign them a password so they can access the directory.cpanel-paperlantern-18-protect--07
  8. Assign a username and password in the “Create User” section.cpanel-paperlantern-18-protect--08
  9. The protected directory now has one user who has access to it. Repeat this process for each additional user you want to grant access for.cpanel-paperlantern-18-protect--09
  10. You can see the new user we just added in the “Authorized Users” section.cpanel-paperlantern-18-protect--10


Change a Password for PostgreSQL on Linux via Command Line

PostgreSQL supports many client authentication methods, but in this case we’re only going to concern ourselves with two: password and md5.

Note: The default authentication method for PostgreSQL is ident. If you’d like to change the PostgreSQL authentication method from ident to md5, then visit the linked tutorial!

Continue reading “Change a Password for PostgreSQL on Linux via Command Line”

Change a Password for MySQL on Linux via Command Line

Pre-Flight Check
  • These instructions are intended for setting the password for all MySQL users named root on Linux via the command line. However, they can also be followed to change the password for any MySQL user.
  • I’ll be working from a Liquid Web Core Managed CentOS 6.5 server, and I’ll be logged in as root.

Continue reading “Change a Password for MySQL on Linux via Command Line”

Practice Safe Passwords: A Quick Guide to Password Security

Your server is only as secure as your weakest password. As a rule of thumb, the more lengthy and complex a password, the stronger it is. Follow the best practices below for generating difficult to crack passwords.

Best Practices


  • DO Use Passwords of At Least Ten Characters: The more characters, the more difficult a password is to crack. Length is key. Create lengthy passwords of at least 10 characters!
  • DO Create Unique Passwords: Each password you use should be for a unique service (ex. cPanel, MySQL, and your bank account should all have different passwords).
  • DO Use a Combination of Character Types: Use numbers, lowercase letters, uppercase letters and symbols in your password. (ex. XkeDZaJ6QG3E8!jKq3%yIOd3)
  • DO Change Your Password Often: Change your passwords at least every six months, if not every three months.
  • DO Randomly Generate the Password: Use one of the following sites to generate a secure password: Norton by Symantec,, or Random Password Generator


  • DO NOT Use Dictionary Words: This one should be obvious. If your password is pizzatime, your server is probably already cracked.
  • DO NOT Use Pets, People, Places, Events, etc.: We’re absolutely sure your dog is adorable. But, her name probably isn’t a good password. Unless her name is Tmb1W\>r~ii, then that’s cool.
  • DO NOT Reuse Passwords: Let’s say your first password for an account was gCB7%TT^Vm but you were forced to change your password, so you changed it to v8@#TsVaiQ. If you have to change the password for that account again, do NOT go back to gCB7%TT^Vm. Create a new, unique password instead!
  • DO NOT Use Adjacent Keyboard Strings: qwerty1234 is not a good password.

Continue reading “Practice Safe Passwords: A Quick Guide to Password Security”