Using phpMyAdmin
This guide explains how to access and use phpMyAdmin to manage your databases, including how to switch between multiple SQL servers.
Overviewβ
phpMyAdmin is a web-based MySQL administration tool that allows you to manage databases, tables, and data through an intuitive interface. When installed, it automatically detects all installed SQL services (MySQL, MariaDB) and allows you to switch between them.
Accessing phpMyAdminβ
Once phpMyAdmin is installed, it's accessible at:
https://phpmyadmin.svc.dvs.sh
Or using your configured domain:
https://phpmyadmin.svc.<your-domain>
Loginβ
phpMyAdmin will automatically use the credentials from your installed SQL services. You typically don't need to enter credentials manually - DevSpaces handles authentication automatically.
Switching Between SQL Serversβ
If you have multiple SQL services installed (e.g., both MySQL and MariaDB), phpMyAdmin allows you to switch between them.
Using the Server Selection Dropdownβ
- Look for the server selection dropdown in the top-left or top-right of the phpMyAdmin interface
- Click on it to see all available SQL servers
- Select the server you want to use
Available Serversβ
phpMyAdmin automatically detects:
- All installed MySQL services (mysql-8.0, etc.)
- All installed MariaDB services (mariadb-10.5, etc.)
Each server is listed with its service name and version.
Managing Databasesβ
Viewing Databasesβ
The left sidebar shows all databases available on the selected server. Click on a database name to expand it and see its tables.
Creating a Databaseβ
- Click on "New" in the left sidebar
- Enter a database name
- Choose collation (optional)
- Click "Create"
Browsing Tablesβ
Click on any database to see its tables. You can then:
- Browse table data
- Edit records
- Run SQL queries
- Export/import data
Running SQL Queriesβ
SQL Tabβ
- Select a database from the left sidebar
- Click on the "SQL" tab at the top
- Enter your SQL query
- Click "Go" to execute
Query Resultsβ
Results are displayed in a table format. You can:
- Edit results directly (if enabled)
- Export results
- View execution time and affected rows
Common Tasksβ
Viewing Application Dataβ
To view data from your applications:
- Select the appropriate SQL server
- Find the database named after your application
- Browse tables to see the data structure
Exporting Dataβ
- Select a database
- Click on "Export" tab
- Choose export method (Quick or Custom)
- Select tables to export
- Click "Go" to download
Importing Dataβ
- Select a database
- Click on "Import" tab
- Choose your SQL file
- Click "Go" to import
Troubleshootingβ
Cannot Access phpMyAdminβ
If you can't access phpMyAdmin:
- Verify the service is installed:
dvs service list - Check service status:
docker ps | grep phpmyadmin - Verify the URL matches your configured domain
Server Not Listedβ
If a SQL server doesn't appear in the list:
- Ensure the SQL service is installed:
dvs service install mysql(or mariadb) - Check service status:
dvs status - Refresh the phpMyAdmin page
Connection Errorsβ
If you see connection errors:
- Check that the SQL service is running
- Verify credentials are correct (usually handled automatically by DevSpaces)
- Check application logs:
dvs logs
Next Stepsβ
- Learn how to access Mailpit for email testing
- Learn how to create a PrestaShop site
- Learn how to create a WordPress site