Default Database and User
Zerops creates a default database and user automatically when a new PostgreSQL service is created.Database
- Name: Identical to the service hostname
- Encoding:
utf8mb4
DB User
- Username: Identical to the service hostname
- Password: Generated randomly
For connection methods and environment variables, see the Connect to PostgreSQL page.
Database Management Tools
You can use any PostgreSQL management tool of your choice to administer your databases in Zerops. For convenience, Zerops provides ready-to-use recipes for two popular web-based database management tools:- AdminerEvo - developed by the AdminerEvo community and is a continuation of the Adminer project by Jakub Vrána
- phpMyAdmin - a popular free database administration tool that works with both MySQL and PostgreSQL databases
Installing Management Tools
You can install these tools with a simple one-click import in Zerops:Open Import Services
In Zerops GUI, open your project and select Import services from the left menu.
Accessing Management Tools
After installation, you can access these tools via VPN:Start the Zerops VPN
Start the VPN connection to your project.
Database Tools on Your Workstation
You can use various database management tools from your local workstation to connect to your PostgreSQL database in Zerops:Establish a secure tunnel
Use the Zerops VPN to create an encrypted connection to your Zerops project.
Obtain connection details
Get the connection details from Zerops GUI.
Environment variables are not available through VPN connections
How to install and manage PostgreSQL plugins
Viewing available plugins
You can list all available PostgreSQL plugins by running the following query (superuser privileges not required):Installing plugins (requires superuser)
Connect with superuser credentials
Use the
superUser (user postgres) and superUserPassword environment variables from your PostgreSQL service.Switch to your service database
When logging in as the superuser, you’re initially in the
postgres database, not your service database.Text Search Dictionaries
When working with text search functionality, you’ll need to reference the correctstop, dict, and affix files when creating dictionaries in your database. These files are essential for proper text search configuration.
Zerops PostgreSQL includes the following dictionary files:
Available dictionary files
Available dictionary files
Stop word files - used to remove common words that don’t add significant meaning:Dictionary and affix files - used for stemming and word normalization:Special rules file:
Creating Additional Users and Databases
You can create additional PostgreSQL users and databases using any of the management tools mentioned above:Using psql
Using AdminerEvo or phpMyAdmin
- Connect to the management tool via VPN
- Use the GUI to create new databases and users
- Set appropriate privileges for the new users
Best Practices
- Use environment variables for database connections instead of hardcoding credentials
- Create separate users for different applications or services
- Grant minimal privileges - only give users the permissions they need
- Regularly update passwords and synchronize them with environment variables
- Use read replicas (port 5433) in HA mode to distribute read load
- Install only necessary plugins to minimize resource usage
Next Steps
Connect to PostgreSQL
Learn connection methods for internal and remote access
Backup & Restore
Configure backups and restore your data