16. How to Manage Databases in cPanel Print

  • 6473

Managing databases in cPanel is essential for your website's performance and functionality. This guide will help you create, manage, and delete databases using the MySQL Database Wizard in cPanel.


Creating a MySQL Database:

  1. Log into cPanel.

  2. In the Databases section, click on MySQL Databases.

  3. Under Create a New Database, enter a name for the database and click Create Database.

  4. Once the database is created, you will see a success message with the database name.


Creating a MySQL User:

  1. Scroll down to the MySQL Users section.

  2. Enter a Username and Password for the new user. It's recommended to use a strong password.

  3. Click Create User.


Assigning a User to a Database:

  1. Under Add User to Database, select the user and database you just created from the dropdown lists.

  2. Click Add.

  3. On the next screen, select the permissions you wish to assign to the user (e.g., ALL PRIVILEGES for full access).

  4. Click Make Changes.

Your user now has access to the database.


Managing Databases:

  • phpMyAdmin: You can use phpMyAdmin to manage databases, run queries, and optimize tables. Access phpMyAdmin from the Databases section in cPanel.

  • Backup: You can create backups of your databases via Backup Wizard or export them from phpMyAdmin.

  • Delete a Database: If you no longer need a database, you can delete it by going to MySQL Databases, scrolling down to the Current Databases section, and clicking Delete next to the database.


Optimizing Databases:

  • Regularly optimize your databases to ensure fast website performance.

  • You can optimize your database via phpMyAdmin by selecting the database and clicking the Optimize Table option.


???? Additional Tips:

  • Always back up your databases before making any changes to them.

  • Set proper user permissions to ensure security.

  • Regularly check your databases for unused tables and records to maintain optimal performance.


Was this answer helpful?

« Back