Setting a Password for the Main MySQL User

I am prompted to set a new MySQL password. What does this mean and how do I change it?
If you have yet to setup a password for your main MySQL username, you will be prompted to do so when logging into cPanel.

Note: If you do not wish to set the password and do not want see this reminder again simply click the link "Don't remind me about this again". You can always change the main MySQL user's password at a later time by clicking the "Reset MySQL Password" icon in cPanel.

What is the main MySQL password used for?

The main MySQL username is primarily used to login to phpMyAdmin however it can also be used in database connection scripts. If you are using the main MySQL username to connect to a database, you will need to change the MySQL user password and update the password in your script.

Note: MySQL users you create will not be affected. This password change is only for the main username as shown on the password change screen.

Note: Before you can use the main MySQL user with any of your databases you must also assign the username to the database. Click Here for further instructions on assigning MySQL users to MySQL databases.

How do I set the main MySQL Password:

  1. Login to your cPane
  2. If you are not automatically prompted to change the MySQL Password, click the icon "Change MySQL Password" found under the Databases section of the cPanel.
  3. Notice the username shown. This is the main username for your account. This password change only changes the MySQL password for this username. This will not change your cPanel password nor other MySQL users you have created.
  4. Enter in a new password in the "New Password" text box. As you type you will see the password requirements which have not yet been met. You can also see your password's strength.
  5. Enter in the same password again in the second "New Password" text box.
  6. Click the "Set MySQL Password" button. You should then see a message "Your password has successfully been updated, Click here to continue".
  • 41 Users Found This Useful
Was this answer helpful?

Related Articles

MySQL Database Creation

Problem: How do I create an empty MySQL Database? Solution: Databases offer a method for...

Remote Database Connection Setup

How do I remotely connect using a database management software? Databases in cPanel can be...

MySQL Import and Export (.sql file) via SSH

Problem: How to import and export a MySQL Database from the command line. Solution: MySQL...

MySQL Import and Export (.sql file) via PhpMyAdmin

Problem: I need to Export or Import a MySQL database Solution: Note: PhpMyAdmin can only...

Connecting to your MySQL DB from Dream Weaver

Problem: How can I connect to our MySQL database from Dream Weaver? Solution: Log into your...