Manage MySQL Database on Linux-Based Hosting
This article explains how databases are used and managed in Linux-based hosting environments, including when manual database creation is required and how to perform basic database management tasks.
In Linux-based hosting environments, websites and applications like WordPress rely on a database system — MySQL — to store and retrieve data.
When do you need to create a database manually
In many cases, databases are created and configured automatically during the installation of applications such as WordPress and Joomla. However, there are situations where manual database setup and management are required.
You create a database manually in situations like the following:
- The application or website does not include an automatic database creation process during installation (e.g. manual WordPress installation).
- The website requires an existing database to be imported, restored, or rebuilt from a backup (e.g. WordPress site migration).
How to create MySQL database manually
Our Current Linux Hosting plans allow you to create a MySQL database using either the Linux Control Panel or cPanel. Classic hosting plans support database creation through cPanel only.
Accessing your database using phpMyAdmin
The phpMyAdmin is a web-based tool used to view, manage, and modify your database content.
Importing a database
The import function is used to restore, or transfer databases between environments. You must have the database backup file to do this.
- Go to your phpMyAdmin.
- On the left side, click on the empty database that you want the backup database file imported.
- Click on the Import tab.
- Click Choose File and select the database backup file on your computer.
- Once done, scroll down and click on Import.
There you go, you can now use the database to your website.
Exporting a database
Export your database and download it to your computer as a backup.
- In your phpMyAdmin, click on the database that you want to export.
- Click on the Export tab.
- Keep the format in SQL.
- Click on Export.
Your database file is now downloaded on your local computer.