Loading...

Knowledge Base

How to Manage MySQL Databases and Users in Customer Portal

Databases are important for handling large volumes of data in online applications, such as bulletin boards and e-commerce platforms. MySQL, a widely used open-source database system, is favored by developers worldwide. Learning how to manage MySQL databases and users effectively is important for beginners and experienced developers looking to optimize their database management skills.

In this article, we will discuss how to manage your MySQL database through your Customer Portal.


How to Access the Database Management Panel

You can manage your databases in the Database Management panel located within your Customer Portal.

Already logged into your Customer Portal? Use the following link to go to the Database Management panel.


Not yet logged into your Customer Portal? Follow the steps below.

To create or manage your indexes:

  1. Log in to your Customer Portal.
  2. Click Websites on the left-hand menu.

    Customer Portal - Websites tab

    Alternatively, you can click on the Hosting tab, locate the hosting package you need to manage, and then click its MANAGE button.

    Customer Portal - Hosting tab - Manage button

  3. On the website management page, locate the website you need to manage and click its SETTINGS button.

    Settings button

  4. On the top menu, click the ADVANCED tab.

    Advanced tab

  5. Click the MANAGE button under the Databases card.

    Databases - Manage button

  6. You will be redirected to the Database Management panel, where you can view and manage all databases and database users.

    DATABASES tab

    Manage MySQL Databases - Databases tab

    USERS tab

    Manage MySQL Databases - Users tab

    REMOTE tab

    Manage MySQL Databases - Remote tab


How to Manage MySQL Databases

On the Database Management panel, you can view and manage the MySQL databases for your website.

Under the Databases tab, you can take the following actions:

Create a New Database

  1. Under the DATABASES tab, click the ADD DATABASE button.

    Manage MySQL Databases - Add Database button

  2. In the Add Database pop-up, enter a name for your database.

    Manage MySQL Databases - Enter database name

  3. Click ADD DATABASE to create the database.

Search for a Database

On the Database Management panel's Databases tab, you can use the search box to locate a specific database to manage.

Manage MySQL Databases - Search box for a database

Check a Database

  1. Under the DATABASES tab, locate the database name that you need to check for errors.
  2. Click the vertical ellipsis icon on the right and select Check Database.

    Manage MySQL Databases - Check database

  3. The system checks the database for errors. If no issues are detected, a green checkmark will appear.

    Manage MySQL Databases - Check database - No Issues

Add a User

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

    Manage MySQL Databases - Add a User

  3. In the pop-up, select a user you need to manage. If you need to create a new database user, select + Create a new user from the dropdown.

    Manage MySQL Databases - + Create a new user

  4. When creating a new user, enter a new username and password, and then click the Select All option to grant all privileges to the new user.

    Manage MySQL Databases - Create a new user & select all privileges

    If you want to modify an existing user's privileges, ensure that you select the correct user from the dropdown menu. Click Select All to select all privileges and grant them to the selected user.

    Manage MySQL Databases - Existing user select all privileges

  5. Once done, scroll down and click the ADD USER button.

    Manage MySQL Databases - Add User button

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 Databases - Access phpMyAdmin

The phpMyAdmin page will open in a new tab.

Delete a Database

  1. Under the Databases tab, locate the database you need to delete.
  2. Click the vertical ellipsis icon on the right and select Delete Database from the list of options.

    Manage MySQL Databases - Delete Database

  3. An alert pop-up will appear, informing you that deleting a database will remove all content. Confirm the action by clicking the DELETE DATABASE button.

    Manage MySQL Databases - Delete Database pop-up


How to Manage MySQL Database Users

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

Under the Users tab, you can take the following actions:

Create a New Database User

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

    Manage MySQL Database Users - Create User button

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

    Manage MySQL Database Users - Enter username and password

  3. Click CREATE USER.

Once the new user is created, you can edit its privileges, rename it, change its password, add it to a database, or remove it from the list of users.

Search for a Database User

On the Database Management panel's Users tab, you can use the search box to locate a specific database user to manage.

Manage MySQL Database Users - Search box for database user

Rename a Database User

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

    Manage MySQL Database Users - Rename user

  3. In the Rename User pop-up window, enter a new username. This will change the existing name of the database user.

    Manage MySQL Database Users - Rename User pop-up

  4. Click UPDATE to save the new username.

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 and select Change Password.

    Manage MySQL Database Users - Change password

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

    Manage MySQL Database Users - Change password pop-up

  4. Click CHANGE PASSWORD.

Add 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 Users - Add to Database

  3. In the pop-up, select the database you want to add to the user.

    Manage MySQL Database Users - Add to Database - Select Database to add

  4. Click the Select All option to grant all privileges to the selected user.

    Manage MySQL Database Users - Add to Database - Select All privileges

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

    Manage MySQL Database Users - Add to Database button

Delete a Database User

  1. Under the Users tab, look for the database user for which the customer wants to delete.
  2. Click the vertical ellipsis icon on the right and select Delete User.

    Manage MySQL Database Users - 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 Users - Delete User pop-up

 

Did you find this article helpful?

 
* Your feedback is too short

Loading...