Use PostgreSQL

postgresql, postgres, database, django, mysql, mariadb · 0 found this helpful

PostgreSQL is a database used by some apps built with Django, Rails, and Node. Barbrick hosting doesn't offer PostgreSQL. Every plan includes MySQL databases, run on MariaDB, and most apps support it.

Use MySQL instead

  1. Check your app's documentation for MySQL or MariaDB support. WordPress, Django, Laravel, and most Node frameworks support it.
  2. Create a database and user. See Create a MySQL database and user.
  3. Point your app at the new database.
Framework Setting
Django "ENGINE": "django.db.backends.mysql"
Laravel DB_CONNECTION=mysql
Node.js Use the mysql2 package

Connection details are the same as any MySQL database on your plan. The host is localhost and the port is 3306.

Moving an existing PostgreSQL database

PostgreSQL data doesn't import directly into MySQL. Export your data, convert it with a migration tool for your framework, then import it. Django's dumpdata and loaddata commands handle this for most Django apps.

If your app needs PostgreSQL

Some apps only run on PostgreSQL. Open a support request and tell us which app you use. We'll help you find the best option.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.