Follow

Managing a MySQL database with phpMyAdmin

  • Applies to: Grid
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: AccountCenter access, database user login
  • Applies to: VPS Hosting
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: Plesk administrator access, database user login
  • Applies to: Legacy DV & VPS Hosting
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: Plesk administrator access, database user login
  • Applies to: DV 4.0
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: Plesk administrator access, database user login
  • Applies to: Premium WP / Managed WP Pro, Personal, Elite
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: AccountCenter access, database user login
  • Applies to: Managed WordPress
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: AccountCenter access, database user login
  • Applies to: Shared Hosting
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: AccountCenter access
 Advanced Support can help!

If you're having trouble with the steps in this article, additional assistance is available via Advanced Support, our premium services division. Our expert engineers can assist in administering your MySQL environment for optimal performance. For more information on what Advanced Support can do for you, please click here.

Overview

The following guide will show you how to access phpMyAdmin for your Grid and how to perform some basic operations on your databases. as the root MySQL user, "admin." This is necessary for performing higher-level database tasks, such as importing an SQL backup file or changing permissions on a database user.

Instructions

    1. Log into your Media Temple account.
    2. Click on the blue ADMIN button associated with your Shared Hosting serverblue-admin-cp.png
    3. In the upper left corner of the account Dashboard, click phpMyAdmin.
      ac-1.png
    4. The phpMyAdmin home page for your account should apear.
      ac-2.png

Resources

Accessing phpMyAdmin for your Grid

You can access phpMyAdmin directly by visiting the following URL (remember to replace 's00000' with your actual site's info from your server guide.):

https://s00000.gridserver.com/.tools/phpMyAdmin/index.php

Log in with your database username and password. If you receive a login error, please try clearing your browser cache.

You can also access phpMyAdmin from the AccountCenter.

  1. Log into your AccountCenter.
  2. Click on the blue ADMIN button associated to your Grid server.

    ac-1.png

  3.  Select Manage Databases from the Databases menu.

    426_managedb

  4. Click on the gear next to the database you wish to edit. phpMyAdmin will launch in a new window.

    426_manage_db

  5. Log into phpMyAdmin with your database username and password.

    Gs phpmyadmin login.png

    We recommend to create a new Database User. This way, you will not interfere with existing applications.

    NOTE:

    phpMyAdmin will often keep incorrect login information cached in your browser. If you get a login error, please try clearing your browser cache. See Errors logging into phpMyAdmin for details on this error. If you still receive an error, please reset your database password. Not sure how? Read: Changing the password for a Database User.

You will now be able to administer your databases through phpMyAdmin. Your session will time out after 30 minutes of inactivity.

Accessing phpMyAdmin for your DV server

Plesk

  1. Log into the Plesk Control Panel
  2. Once you're logged in, click on Databases.

    PHPmyadmin1.png

  3. Under Subscription, click on the domain associated with the DB you'd like to work with. 
  4. Scroll down to the database you'd like to work with and click on the phpMyAdmin icon below it. This will launch the phpMyAdmin utility in your browser. phpmyadmin3.png

cPanel

  1. Log into the cPanel account for the desired domain.
  2. Locate the Databases and click phpMyAdmin.

    cp-12.png

Accessing phpMyAdmin for your WordPress Hosting service

You can access phpMyAdmin directly from the SETTINGS panel of your WordPress Hosting site in the AccountCenter.

  1. Log into your Media Temple Account.
  2. Select the ADMIN button associated with your Managed Wordpress server.
    mwp-ac.png
  3. Locate your desired site. Click the three dot icon and select Settings.
    mwp-settings.png
  4. Select Show More.
    mwp-php-2.png
  5. Navigate to phpMyAdmin and select View.
    mwp-php-3.png
  6. A pop-up menu will appear with your phpMyAdmin credentials.
  7. Select the phpMyAdmin URL.
    mwp-php-4.png
  8. A new tab for phpMyAdmin should open. Input the Username and Password from the previous pop-up menu.
    mwp-php-5.png
  9. That's it! You should now be logged into phpMyAdmin
  1. Log into your AccountCenter.
  2. Select on the blue ADMIN button associated to your Managed WordPress server.

    ac-2.png
  3. Hover your cursor over the desired site slot. Then click MANAGE SITE.

    ac-3.png
  4. Click on the phpMyAdmin link located in the menu to the left.

    ac-1.png
  5. phpMyAdmin will launch.
  6. Click on Databases.

    php-1.png
  7. Click on the active database for your site.

    php-2.png

You will now be able to administer your databases through phpMyAdmin.

Basic operations

CAUTION:

Before making any changes to your database(s), please consider making a backup:

Here are some basic operations you can perform on your databases and tables in phpMyAdmin:

  1. Select the database you want to use from the list on the left.

  2. Select the tables you want to use. When optimizing or repairing, you should select Check All.

    Phpmyadmin check all.png

  3. In the "With selected" dropdown menu, select one of the following:

    Phpmyadmin dropdown repair.png

    CAUTION:

    The "Empty" and "Drop" actions will remove content from your database. Please do not do this unless you are sure you want to remove this content.

    • Empty - This will empty all data from the selected tables.
    • Drop - This will drop (delete) the selected tables.
    • Check Table - This will check the tables for errors.
    • Optimize Table - This will perform some basic table optimizations.
    • Repair Table - This will attempt to repair your tables.
    • Analyze Table - This will analyze your tables.

NOTE:

Exporting and then re-importing your database may improve its optimization. This article explains in detail how to export and import MySQL databases:

Troubleshooting

If you are having issues logging into phpMyAdmin:

If you have a crashed database table:

  1. Select any tables that are marked as "in use" in phpMyAdmin.
  2. In the "With selected" dropdown menu, select the "Repair table" option.
  3. MySQL will now attempt to repair the crashed table. The repair operation may take a while to complete, depending on the size of the table.
Was this article helpful?
0 out of 1 found this helpful

Comments