---
title: "Tools for administering your database"
date: "2024-02-14T06:18:38+00:00"
summary: "Discover powerful tools for managing your Drupal database on Acquia Cloud Platform. Learn about desktop applications, command-line options, and essential database tasks to streamline your administration workflow."
image:
type: "page"
url: "/acquia-cloud-platform/tools-administering-your-database"
id: "2da72f12-6ce7-4a3c-af1d-641c8e4890f8"
---

This topic describes several different ways you can access and administer your Cloud Platform application’s Drupal database. For most of these tools, you will need the connection details and credentials for the database. See [Viewing database information](/acquia-cloud-platform/manage-apps/database#credentials) for information about where to find these.

Desktop applications
--------------------

You can access and administer your application’s Drupal database using a desktop application that supports [SSH tunneling](/acquia-cloud-platform/help/92326-ssh-tunneling-server-side-applications "SSH tunneling for server-side applications"). It specifies that you are connecting to the database through an SSH connection, using the same private key authentication that you use to SSH to the infrastructure. Here are some options to consider:

*   [MySQL Workbench](http://wb.mysql.com): MySQL Workbench is a free, cross-platform, visual database design tool developed by MySQL. It runs on Windows, macOS, and Linux.
    *   Cloud Next: MySQL Workbench is not fully compatible with Cloud Next. As a temporary workaround, subscribers who want to resolve software connection issues with Cloud Next environments can:
        1.  Locate the database credentials:  
            To locate your database credentials:
            1.  Sign in to the Cloud Platform user interface.
            2.  Access an environment for your application.
            3.  Click **Databases**.
            4.  Click a database.
            5.  Click **Settings**.
        2.  Locate the SSH URL connection string.  
            To locate your SSH URL:
            1.  Sign in to the Cloud Platform user interface.
            2.  Access an environment for your application.
        3.  In a local terminal, run:
            
            `ssh -L $LOCAL_PORT:$DB_HOST:3306 $SSH_URL`
            
            Here,
            
            *   `LOCAL_PORT` is the port to which Workbench must connect when using localhost.
            *   `DB_HOST` is the database hostname obtained from the preceding steps
            *   `SSH_URL` is the full SSH connection string from the preceding step. For example, `app.env@appenv.ssh.prod.acquia-sites.com`.
*   [Navicat for MySQL](http://www.navicat.com): A well-designed and popular commercial tool that runs on Windows, macOS, and Linux. This software isn’t tested to verify compatibility with Cloud Next environments.

phpMyAdmin
----------

Acquia does not recommend you to use phpMyAdmin on Cloud Platform. This software can expose your application to unnecessary risk, especially if the software is not up-to-date. phpMyAdmin is not officially supported on Cloud Next, and subscribers can leverage alternative solutions.

Command line
------------

You can also access your database over SSH and use MySQL’s command line. For more information, see [Accessing your database from the command line](/acquia-cloud-platform/manage-apps/database/cli).

Note

You can’t SSH directly into Cloud Platform Enterprise database infrastructure. For environments running on the Cloud Classic infrastructure, database servers have a server name that starts with `fsdb` or `fsdbmesh`. You can check the **Infrastructure** page in the Cloud Platform user interface to check the server type. If the service for a server is listed as Database, you can’t SSH directly into it. For environments running on Cloud Next, the **Infrastructure** page is not available, and all SSH activities take place on a dedicated SSH pod associated with your target environment.

Database tasks
--------------

You can use database management tools to perform the following tasks:

*   Rename, import, export, and otherwise manage databases and database tables directly in your web browser.
*   Export data in a range of formats, including CSV, Excel, XML, and OpenOffice.
*   Browse or search in your data.
*   Edit fields in your databases directly.
*   Import and export database snapshots for given releases in your development workflow.
*   Support your organization’s policies on data backup and archiving.
*   Test database queries during module development and debugging.

You can’t use database tools to create new databases in Cloud Platform. If you need a new database, use the **Databases** page in the Cloud Platform interface, or the [POST /applications/{applicationUuid}/databases](https://cloudapi-docs.acquia.com/#/Applications/postApplicationDatabaseCreate) Cloud Platform API endpoint. For an example implementation, download this example [`database creation script`](/node/55797#api-notification-example).

Using database tools on Cloud Platform Enterprise
-------------------------------------------------

If you have a Cloud Platform Enterprise application running on the Cloud Classic infrastructure, it includes a highly available database cluster, using bi-directional replication between database pairs. Each database has an active and inactive infrastructure. If you run intensive processes, such as database backups, against the active infrastructure of a live application, it can impair the performance of your production website. Tools in Cloud Platform, such as its user interface and the [API](/acquia-cloud-platform/develop-apps/api), run against the inactive database infrastructure to avoid this performance impact. However, some other database tools run against the active database infrastructure. For example, running the `mysqldump` or `drush sql-sync` command from the command line. Therefore, you should use the Cloud Platform database tools for larger operations, such as database dumps. For example, if you want to create a database backup from the command line, you can use a Drush Cloud command similar to the following:

    drush @[site].[env] ac-database-instance-backup [db name]

substituting your own website, environment, and database names. The database backup will run against the inactive database, avoiding any performance impact on your active database.

For environments running on Cloud Next, the preceding command is not available. Therefore, you must use Acquia CLI, Acquia Cloud API v2, or the Cloud Platform user interface to create database backups.