How to use phpMyAdmin

in MySQLNginx configuration Tags: MySQL

By popular request we’ve added PHPMyAdmin to all Hypernode nodes. This article will explain how you can use PHPMyAdmin and how to create a database dump.

By default it is accessible at

For protection, phpMyAdmin by default is only accessible through the URL and on Vagrant on the appname.hypernode.local/phpmyadmin url. You can adjust this behaviour to your own preference.

Working with phpMyAdmin

Access phpMyAdmin

NOTE: Did you order a trial via (by invitation only)? Please be aware you do not have access to a Service Panel. Access phpMyAdmin only via

You can log in using the credentials supplied in your .my.cnf file or through the user/password you might have created

As a customer you can access phpMyAdmin via your Service Panel as well:

  • Log in to the Byte Service Panel
  • Select your Hypernode plan
  • Click on the Hypernode tab.
  • Click phpMyAdmin
phpMyAdmin is accessible through the Service panel

Use phpMyAdmin on Hypernode

Create a database dump using phpMyAdmin

  • Go To
  • Click on “Databases” and select the database.
  • Click on “Export”.
  • Click on “Go” and the export/backup will be available.

If you have a large database, making a database dump through phpMyAdmin is not very reliable. Before importing it, make sure the integrity of your database dump is sane!

Configure phpMyAdmin

Create whitelisting and/or basic_auth config

If you haven’t created a whitelist or basic_auth config using include files to protect your phpmyadmin from unsolicited IP addresses, do this first before you follow the instructions below.

Using phpMyAdmin over SSL or through another URL

When you redirect all traffic to HTTPS, you might experience a SSL browser error when connecting to PHPMyAdmin as the SSL certificate of your domain does not match the domain name.

To avoid this, there are 2 possible solutions:

  • Use Letsencrypt and create a ssl certificate for
  • Adjust your Nginx config to make PHPMyAdmin accessible through another url then

For the latter, use the instructions below.

Reroute /phpmyadmin to /dbadmin and add a whitelist

When you want to use phpMyAdmin over SSL, or you want to add a whitelist with IP’s that are allowed to access phpMyAdmin, you can do so by moving phpMyAdmin to another URL that we can adjust to our needs:

  • First, create a symlink in /data/web/public:
ln -s /usr/share/phpmyadmin/ /data/web/public/dbadmin
  • Next, create a snippet in /data/web/nginx called server.phpmyadmin with the following content:
location /dbadmin {
    # Only allow IP addresses defined in /data/web/include.whitelist
    include /etc/nginx/app/include.whitelist;

    # Uncomment to secure phpMyAdmin with additional basic_auth 
    # include /etc/nginx/app/include.basic_auth;

    try_files $uri $uri/ /dbadmin/index.php last;

    location ~ \.php$ {
        echo_exec @phpfpm;

And finally visit phpMyAdmin on

This will only add another URL where phpMyAdmin is accessible. If you only want to use this endpoint, block all access to /phpmyadmin too

Blocking all access to phpMyAdmin

If you want to fully disable phpMyAdmin, create the following snippet as /data/web/nginx/server.phpmyadmin:

## Block PHPMyAdmin
location ~* phpmyadmin {
    deny all;

Troubleshooting phpMyAdmin

  • The phpMyAdmin button in the control panel redirects to https:// and gives a 404 in Nginx

This is probably because you redirect ALL traffic over HTTPS. Try using PHPMyAdmin over ssl as explained above.

  • I’m receiving an error while dumping the database

Most of the time this happens when a database is large and you exceed the max_execution_time or memory_limit in php. If this happens try dumping your database on the command line

  • My phpMyAdmin does not show any images

This happens when you redirect all traffic to HTTPS, causing mixed content errors in your browser. To solve this use phpMyAdmin over SSL.