How to create a new MySQL Database in Hostinger

Create a MySQL database and user for your website from the Databases page in Hostinger dashboard.

Updated 1 week ago

Create a new MySQL database in Hostinger from the Databases page of your website by clicking Add database and entering a database name, username, and password. The new database and its MySQL user are created together, and the database appears on the website’s Databases page, where you can manage it.

Create a MySQL database in Hostinger dashboard

  1. Go to Websites → Manage site for the website that will use the database, and select Databases in the left sidebar.
  2. Click Add database.
  3. Select Create a new database and click Continue.
  4. In the Create a MySQL database and user window, enter the MySQL database name, such as shop.
  5. Enter the MySQL username, such as shopuser.
  6. Enter a Password, or click Generate password to create a strong one.
  7. (Optional) Select Import data from a file to bring in tables and data from a backup.
  8. Click Create.

Keep the following in mind when you create a database:

  • The first part of the database name and username, such as u123456789_, is unique to your account and can’t be removed or changed.
  • Each database can only have one user. If you require multiple users, consider a VPS plan.
  • The database password must contain at least one number and one uppercase and lowercase letter, with a minimum length of 8 characters.

To import a database into an existing database instead, see how to import a database from the Hostinger dashboard.

Your new MySQL database is ready to use, and its connection details appear on the database’s page.

Manage your new database