Skip to main content

Databases and Database Users at Seravo

Learn why a Seravo hosting plan includes one MariaDB database and database user, and how to use custom tables, WordPress Multisite, or the WordPress REST API for integrations.

Seravo's hosting platform is tailored exclusively for WordPress sites. Each site environment includes one MariaDB database and one database user, and it is not possible to create additional databases or separate database user accounts for external applications under the same plan.

One Database and Custom Tables

Although additional databases or database users cannot be created, you have full privileges to manage your site's own WordPress database:

  • Custom database tables: You are free to create custom tables inside your WordPress database (for example, for custom plugins or application logic) using WordPress's $wpdb class or database management tools.

  • Locating database credentials: Your site's database name, username, password, and host are automatically defined via environment variables (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST) and can be inspected in /data/wordpress/htdocs/wp-config.php.

  • Managing the database: You can browse and edit the database in your browser using Adminer (Tools → Database, see Seravo Plugin – Database) or on the command line via SSH using wp db cli.

Note (Remote database connections): For security reasons, Seravo's MariaDB database server does not accept direct connections from the public internet. If you want to connect to the database from your local workstation using a graphical database client (such as TablePlus, DBeaver, or Sequel Ace), connect over an SSH tunnel using your site's SSH credentials.

Multiple Sites in One Database (WordPress Multisite)

If you want to host multiple separate websites or language versions within a single hosting plan and database, WordPress Multisite is the recommended solution. Multisite enables you to manage multiple sites under one WordPress installation and database, with each subsite assigned its own set of database tables.

Seravo's hosting plans include support for WordPress Multisite on the WP Corporate and WP Enterprise tiers. For more details, see What Is WordPress Multisite? Features and Considerations.

Using the WordPress REST API for Integrations

If you need to integrate your WordPress site with an external system (such as an ERP, POS system, or mobile application), always build the integration using the WordPress REST API rather than a direct database connection:

  • Security and access control: The REST API uses WordPress's built-in user roles and Application Passwords, allowing you to grant external systems the exact permissions they need.

  • Reliability: Writing directly to the database outside of WordPress bypasses WordPress hooks, data validation, and cache invalidation, which can lead to data inconsistencies and stale content appearing on the site.

Common Issues and Troubleshooting

  • An external application cannot connect directly to the database IP address: The MariaDB port (3306) is blocked from the public internet. Use the WordPress REST API for external integrations, or connect local development tools via an SSH tunnel.

  • Data in custom tables does not update on the site after changes: If a plugin or script writes directly to custom database tables outside of standard WordPress functions, the server's HTTP and Redis caches are not cleared automatically. Call wp_cache_flush() after updating data or clear the cache via SSH with wp-purge-cache.

See Also

Every Seravo site environment is optimized to run on a single WordPress database alongside API-based integrations. If you are planning a larger architecture, a WordPress Multisite network, or need advice on database setups, our customer support team is happy to help at [email protected].

Did this answer your question?