How to create a database in VestaCP on private virtual server - VPS

A database is an organized collection of data, generally stored and accessed by dynamic websites. When you installed VestaCP on VPS, you will be provided with a control panel that allows you to create and manage the database of your website.

Steps to create a new database in VestaCP on private virtual server – VPS

1 Login to your VestaCP account.

Login to your VestaCP account

You have been provided an account to login to VestaCP after you have installed VestaCP.

By default, VestaCP's login address is: https://your-domain.com:8083

2 In VestaCP, go to DB section

Go to DB section 

3 Click on the button with the plus sign, it will show Add Database.

Click on the button with the plus sign 

4 In Adding Database, please follow these instructions:  

Adding Database 

  1. Enter the name for your database. The database name prefix is available and cannot be changed.
  2. Enter the name for MySQL user. The username prefix is available and cannot be changed
  3. Enter password for MySQL user. You can set your own password or use a password generator by click on the Generator text link.
  4. Select the SQL data type. If you don't know what to choose, please keep the default is: mysql
  5. Select the MySQL Host. If you don't know what to choose, please keep the default is: localhost
  6. Select charset for your database. If you don't know what to choose, please keep the default is: utf8
  7. Click Add button when done.

Please remember your Database Name, MySQL User and password.

After the database is created, you will see a list of databases in the DB section.

A list of databases in the DB section