Loading...

Knowledge Base
Up to 75% off on hosting for WordPress websites and online stores

Create and Manage MySQL Databases and Users

Databases are the backbone of your website, storing, retrieving, and editing your data. Think of them as a digital file cabinet that holds all the information about your website—the site name, plugins, text, and more. This means the functionality and efficiency of web-based applications heavily rely on databases. As a business owner or website admin, managing your databases effectively is crucial. In this guide, we'll focus on managing your MySQL database in your Account Manager, specifically on steps to create and remove MySQL databases and users in your Account Manager. Let's get started!

To learn how to set up remote access to your database, please refer to our article, How to Connect to a MySQL Database Using Account Manager Remotely.


Accessing Your Database Management Panel

You can manage your databases in the Database Management panel located within your Account Manager.

Already logged into your Account Manager? Use the following link to go to the Database Management panel.


Not yet logged into your Account Manager? Follow the steps below.

  1. Log in to your Bluehost Account Manager.
  2. Navigate to the Websites tab on the left side of your Account Manager dashboard and select the website you are working on.

    Account Manager - Websites tab

    Another way is to navigate to the Hosting tab and click the MANAGE button to select the hosting package you're working on.
    Hosting tab - Manage button

  3. Once you locate your website, click Settings.
    Settings button
  4. Under the ADVANCED tab, look for the Databases card and click its MANAGE button.
    Advanced tab - Databases card
  5. You can now access your Databases Management panel. Here, you can view and manage your databases and users.

    DATABASES tab:
    Manage MySQL Database - Databases tab
    USERS tab:
    Manage MySQL Database - Users tab
    REMOTE tab:
    Manage MySQL Database - Remote tab

Managing MySQL Databases

Now that you have access to your Database Management panel, let's explore how to manage a MySQL database in your Account Manager.

Here are the actions you can take within the Database Management panel's DATABASES tab:

How to Create a MySQL Database

  1. Under the DATABASES tab of the Database Management panel, click the ADD DATABASE button.
    Manage MySQL Database - Add Database
  2. In the Add Database pop-up, enter your database name and click the ADD DATABASE button.
    Manage MySQL Database - Enter database  name

How to Search for a MySQL Database

Under the DATABASES tab of the Database Management panel, you can locate a specific database by using the search box.

Manage MySQL Database - Search box

How to Check a MySQL Database

  1. Under the DATABASES tab, find the database name you want to check for errors.
  2. Click the vertical ellipsis icon on the right and select Check Database.
    Manage MySQL Database - Check Database
  3. The system will scan the database for errors. If no issues are found, a green checkmark will appear.
    Manage MySQL Database - Database has no issues

How to Add a User

  1. Under the DATABASES tab, look for the database to which you want to add a new user.
  2. Click the vertical ellipsis icon on the right and select Add User.
    Manage MySQL Database - Add User
  3. Click the dropdown menu and select + Create a new user.
    Manage MySQL Database - Create a new user
  4. Enter a new username and password, then click Select All to grant all privileges to the user.
    Manage MySQL Database - Enter new username and password, and grant all privileges

    Note: Please make sure to note down your password securely. It should be at least 12 characters long and include a mix of numbers, special characters (e.g., !, @, #, $, %), and both uppercase and lowercase letters. For security reasons, avoid writing it on paper or storing it in easily accessible places that could lead to accidental sharing or leakage.

  5. Once done, scroll down and click the ADD USER button.
    Manage MySQL Database - Add User button

How to Access the phpMyAdmin

  1. Under the DATABASES tab, locate the database from which you want to access the phpMyAdmin.
  2. Click the vertical ellipsis icon on the right and select Access phpMyAdmin.

    Manage MySQL Database - Access phpMyAdmin

The phpMyAdmin page will open in a new tab.

How to Delete a MySQL Database

Deleting a database cannot be undone. Please make sure to create a database backup before carrying out the steps below.
  1. Under the DATABASES tab, locate the database you want to delete 
  2. Click the vertical ellipsis icon on the right and select Delete Database.
    Manage MySQL Database - Delete Database
  3. An alert pop-up window will appear, informing you that deleting a database will remove all content. Click the DELETE DATABASE button to confirm.

    Manage MySQL Database - Confirm to delete database


Managing MySQL Database Users

On the Database Management panel, you can create and manage the MySQL database users for your website.

Here are the actions you can take within the Database Management panel's USERS tab:

How to Create a New Database User

  1. Under the Users tab of the Database Management panel, click the CREATE USER button.

    Manage MySQL Database User - Create User button

  2. In the Create New User pop-up window, enter a username and password.

    Manage MySQL Database User - Enter new username and password

  3. Click the CREATE USER button.

How to Search for a Database User

Under the USERS tab of the Database Management panel, you can locate a database user by using the search box.

Manage MySQL Database User - Search for a user

How to Rename a Database User

  1. Under the Users tab, locate the database user you want to rename.
  2. Click the vertical ellipsis icon on the right, then select Rename.

    Manage MySQL Database User - Rename a user

  3. Enter a new username in the Rename User pop-up window to change the name of the database user.

    Manage MySQL Database User - Enter new name

  4. Click UPDATE to save the new username.

How to Change the Password of a Database User

  1. Under the Users tab, locate the database user for whom you want to change the password.
  2. Click the vertical ellipsis icon on the right, then select Change Password.

    Manage MySQL Database User - Change Password

  3. Enter the new password in the Change MySQL User Password pop-up to change the password for the selected username.

    Manage MySQL Database User - Enter new password

  4. Click the CHANGE PASSWORD button.

How to Add a User to a Database

  1. Under the Users tab, locate the database user that you want to add to a database.
  2. Click the vertical ellipsis icon on the right and select Add to Database.

    Manage MySQL Database User - Add to Database

  3. In the pop-up, select the database you want to add to the user, then click Select All to grant all privileges to the selected user.

    Manage MySQL Database User - Select database and grant privileges

  4. Once done, scroll down and click the ADD TO DATABASE button.

    Manage MySQL Database User - Add to Database button

How to Delete a Database User

Important: Deleting a database user is permanent and cannot be undone. Make sure the user you are about to remove no longer requires access to your database. Deleting a user may affect their ability to perform tasks or access data. Always double-check before proceeding.

  1. On the Database Management page, go to the Users tab and find the user you want to remove.
  2. Click the vertical ellipsis icon on the right and select Delete User.
    Manage MySQL Database User - Delete User
  3. An alert pop-up will appear, informing you that deleting a database user will remove all content for that user. Confirm the action by clicking the DELETE USER button.

    Manage MySQL Database User - Confirm deletion of database user


Summary

Managed databases are crucial to maintaining web-based applications such as online stores and websites. This article covered how to access the Database Management page, create and delete databases, check for errors, and manage database users. By following these steps, you can ensure efficient database management and keep your web applications running smoothly and reliably.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Did you find this article helpful?

 
* Your feedback is too short

Loading...