How to Create and Manage Databases

This guide provides a straightforward approach to creating and managing a new MySQL/MariaDB or PostgreSQL database in Managed WordPress.

How to create a new database

Creating a database is a common requirement for website development and application management. The Hosting Platform provides an easy way to set up a new MySQL/MariaDB or PostgreSQL database. Here’s how to do it:

  1. Select the domain
    After logging into the Hosting Platform, choose the domain for which you want to create the database. Do this by selecting the domain name from the drop-down box in the top-left corner of the left menu.

  2. Navigate to database management
    Click on Edit Databases, which is where you manage all database-related settings for your domain.

  3. Create a new database
    Click on Create a new database. This will open a form to set up your new database:

  4. Configure database settings

    • Database name: Choose a name for your database and enter it in the Database name field. This name should be unique and descriptive.
    • Database server type: In the Database server type field, select either MySQL/MariaDB or PostgreSQL. If you’re unsure which to choose, MySQL/MariaDB is a popular choice for its ease of use and broad compatibility.
  5. Create the database
    Click Create. Virtualmin will process your input and establish the new database.

Once successfully created, this new database will be associated with your selected virtual server.

Managing your database

Managing databases is essential for website and application management. Virtualmin streamlines the database management process. Here’s how to do it:

  1. Select domain
    From the top-left corner dropdown box, choose the domain which database you wish to manage.

  2. Edit databases
    Click on Edit Databases to proceed with database management.

  3. Database management
    To manage a specific database, click the Manage link next to the database name.

Opened page will provide the following database operations:

  • Create a new table
    Begin defining a new table by specifying the number of fields and clicking Create a new table.

  • Create view
    Construct a new view for running specific queries by clicking Create View.

  • Drop database
    Remove the entire database from the system by selecting Drop Database.

  • Backup database
    Safeguard your data by creating a backup with the Backup Database option.

  • Execute SQL
    Run custom SQL queries on your database by selecting Execute SQL.

  • 0 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

How to Create an Email Account

This tutorial provides a straightforward guide on creating an email account in a Managed...

How to Configure a Catch-All Email Account

Learn how to configure a catch-all email account in Managed WordPress, designed to receive all...

How to Create an Auto-Responder

This tutorial demonstrates how to set up an email auto-responder in Managed WordPress, a useful...

How to Setup Email Forwarding

This guide outlines the process of setting up email forwarding in Virtualmin, enabling you to...

How to View Website Access and Error Logs

This guide simplifies the process of viewing website access and error logs in Managed WordPress....