Support / KnowledgeBase

 
Search the KnowledgeBase Search

Managing a MySQL database with phpMyAdmin

  • Applies to: (dv) 3.5, (dv) 4.0, (gs)

  • Difficulty: Medium

  • Time needed: 20 minutes

  • Tools needed: None

 
  • Applies to: (gs)
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: AccountCenter access, database user login
  • Applies to: (dv) 4.0
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: Plesk administrator access, database user login
  • Applies to: (dv) 3.5
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: Plesk administrator access, database user login

Overview

The following guide will show you how to access phpMyAdmin for your (gs) Grid-Service, 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.

End of Life Warning

This service has a pending End of Life. Please move to a current service as soon as possible. For more information, please see: (dv) Dedicated-Virtual 4.0: Migration Information.

Accessing phpMyAdmin for your (gs) Grid-Service

You can access phpMyAdmin directly by visiting the following URL:

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. Select your primary domain name from the Domains tab, see Figure 1.

    AC domain-select.jpg
    Figure 1.

  3. Click on Manage Databases, see Figure 2.


    Figure 2.

  4. Click on the Admin button next to your database. phpMyAdmin will launch in a new window.

    Gs phpmyadmin admin.png

  5. Log into phpMyAdmin with your database username and password. If you receive a login error, please try clearing your browser cache. If you still receive an error, please reset your database password. Not sure how? Read: Changing the password for a Database User.

    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.

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

Troubleshooting

Accessing phpMyAdmin for your (dv) Dedicated-Virtual Server

  1. Log into the Plesk Server Administration Panel. See Figure 1:
    Plesk10_defaultscreen.png

    Figure 1. The Plesk control panel. Click for a larger view.

  2. Click on Tools & Utilities on the left. See Figure 2:
    Plesk10_tool.png

    Figure 2. Click on Tools & Utilities.

  3. In the Resources section, click on Database Servers. See Figure 3:
    Plesk10_tool_database.png

    Figure 3. Click on Database Servers.

  4. Then, click on Local MySQL server. See Figure 4:
    Plesk10_tool_database_server.png

    Figure 4. Click on Local MySQL server.

  5. Click on the Databases tab. See Figure 5:
    Plesk10_tool_database_databases.png

    Figure 5. Click on the Databases tab.

  6. Now, click on Webadmin. See Figure 6:
    Plesk10_tool_database_webadmin.png

    Figure 6. Click on Webadmin.

    If nothing happens, you need to enable pop-ups in your browser. Check the help documentation for your browser.

  7. phpMyAdmin will open in a new window (see Figure 7). You can now proceed to administrate your databases as the "admin" user with full access. Plesk10_phpmyadmin.png

    Figure 7. The phpMyAdmin user interface.

TIP:

If phpMyAdmin does not launch properly, please make sure your popup blocker is disabled for your site.

 

  1. Log into Plesk.
  2. Click on the Server tab.
  3. Click on Database Servers.

     

    Plesk server database servers.png

     

     

  4. Click on Local MySQL Server.

    Plesk server local.png

     

     

  5. Click on the Databases tab.

     

    Plesk server database databases.png

     

     

  6. Click on DB WebAdmin. You may have to enable pop-ups.

     

    Plesk server database dbwebadmin.png

     

  7. phpMyAdmin will load in a new window. You can now proceed to administrate your databases as the "admin" user with full access.

     

    Plesk server phpmyadmin home.png

Basic operations

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

Export and import MySQL databases

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.

    Phpmyadmin select db.png

  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

    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.

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

Export and import MySQL databases


User Comments

  1. 1. KrondaThe instructions regarding reaching phpMyAdmin from your account center seem to no longer apply, as I cannot find the Manage Databases link anywhere on the main page for our domain. You may want to update these instructions.

  2. 2. Elite Hello Kronda. Thanks for your comment. The instructions are correct. I did add screen captures to help navigate you to your (gs) Control Panel. Hope this helps! Let us know :)

  3. 3. AnonymousIs it possible to just go straight to phpmyadmin within dv4.0 rather than having to go through plesk? cheers

  4. 4. Elite Yes, it is possible. Please see our Community Wiki article: http://wiki.mediatemple.net/w/(dv)_4.0_-_Making_It_Better_::_Web_Accessible_phpMyAdmin

Fields marked with an asterisk(*) are required. Comment on this article
Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue