Loading...

Knowledge Base

How to 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 Bluehost Portal, specifically on steps to create and manage MySQL databases and users in your Bluehost Portal. 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 Bluehost Portal Remotely.

Accessing Database Management

  1. Log in to your Bluehost Portal.
  2. In the left-hand menu, click Websites.
  3. Click the Manage button located next to the website you want to manage.

    Bluehost Portal - Website Manage button
     

  1. In the Overview page, click Databases to open the Database Management.

    Bluehost Websites Overview Tab - Databases
     

    Here, you can view and manage your databases and users.

    Database tab:

    Manage MySQL Database - Databases tab
     

    User 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, let's explore how to manage a MySQL database in your Bluehost Portal.

Here are the actions you can take within the Database tab:

How to Create a MySQL Database

  1. Under the Database tab, click the Add Database button.

    Manage MySQL Database - Add Database
     

  2. In the Add Database, 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, 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 and show the Table Name and Status.

    Bluehost Websites Overview Tab - Check Database Display
     

    • If the status is OK, your database is functioning properly.
    • If an issue is detected, click the vertical ellipsis (⋮) next to the affected database and select Repair Database. Refer to  How to Repair a Broken Database in Bluehost Portal to identify and repair database issues.

      Bluehost Websites Overview Tab - Repair Database
       

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 Select user dropdown menu, select + Create a new user, and click Add User.

    Manage MySQL Database - Create a new user
     

  4. Put in a new username and password, then click Select All to grant all privileges to the user.
    Please make sure to note down your password securely. It should be at least 12 characters 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 Database Management, you can create and manage the MySQL database users for your website.

Here are the actions you can take in the Users tab:

How to Create a New Database User

  1. Under the Users tab, click the Create User button.

    Manage MySQL Database User - Create User button
     

  2. In Create New User, 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, 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 Rename User to change the name of the database user.
  4. Click Update to save the new username.

    Manage MySQL Database User - Enter new name
     

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 Change MySQL User Password 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. Select the database you want to add to the user, then click Select All to grant all privileges to the selected user.
  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

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. 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

Managing MySQL databases in the Bluehost Portal helps keep your website secure, reliable, and efficient. You can create, check, repair, and delete databases, access phpMyAdmin, and fully manage database users—including creating users, assigning permissions, updating passwords, and removing access. By following these steps and best practices, such as using strong passwords and backing up data, you can maintain smooth website performance and protect your data effectively.

If you need further assistance, Bluehost Chat Support is available 24 hours a day, 7days a week while Bluehost Phone Support is available 7 days a week from 7 am-12 midnight EST. 

  • 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.

Loading...