Knowledge Base

How to add your Media Temple Grid Services database to CodeGuard

Overview

By the end of this article, your Media Temple Grid Services database will be added to CodeGuard and backing up automatically. The article lists what you need before you start, then covers the three stages of the task: creating a MySQL user with read and write permissions in the Media Temple Grid Control Panel, whitelisting the CodeGuard IP addresses in the External Databases section, and collecting the external hostname so you can activate the database in CodeGuard. It closes with how to confirm the database was added and what to do if the connection test fails.

Prerequisites

  • An active CodeGuard account with the associated website already added.
  • Media Temple Account Center sign-in credentials with administrator access to the domain.
  • A Media Temple Grid Services hosting plan with the database you want to back up.

 

Stage 1 — Create a MySQL user for CodeGuard

Step 1 — Sign in to Media Temple

Sign in to the Media Temple Account Center at https://ac.mediatemple.net.

Media Temple Account Center sign-in page

 
Figure 1: Media Temple Account Center sign-in page

Step 2 — Open the Grid Control Panel

Select Admin next to the domain name your database is associated with.

Account Center domain list with the Admin option beside a domain name

 
Figure 2: Account Center domain list with the Admin option beside a domain name

Step 3 — Open Manage Database

In the Grid Control Panel, select Manage Database.

Grid Control Panel with the Manage Database option

 
Figure 3: Grid Control Panel with the Manage Database option

Step 4 — Open Users & Settings

Select Users & Settings to view the database users.

Manage Database page with the Users and Settings tab open

 
Figure 4: Manage Database page with the Users and Settings tab open

Step 5 — Add the user and grant permissions

  1. Select Add User.
  2. Create a new MySQL user and note the username and password — you will enter both in CodeGuard later. Media Temple prefixes the name you type with an account-specific string, so the full username is longer than what you enter. For example, typing cguser produces a full username in the form db######_cguser.
  3. Select Permissions for the new user.
  4. Grant Read/Write permissions and select Save. Read and write access is required so that CodeGuard can both back up and restore the database.


 


Figure 5 and 6: Add User page with Read and Write permissions selected

 
 


Figure 7 and 8: Add User page with Read and Write permissions selected

Stage 2 — Whitelist the CodeGuard IP addresses

Add the CodeGuard IP addresses for your region to the External Databases section of the Grid Control Panel. Media Temple blocks connection attempts from addresses that are not listed here, so a database added without this step will fail its backups.

CodeGuard IP addresses to whitelist by region
RegionCodeGuard addressIP addresses to whitelist
United Statescodeguard.com
  • 54.236.233.46
  • 54.236.233.28
  • 54.174.91.34
  • 54.174.153.212
  • 54.174.115.171
Germanyde.codeguard.com
  • 35.157.245.195
  • 18.185.35.20
United Kingdomuk.codeguard.com
  • 52.56.56.141
  • 35.178.158.59
Francefr.codeguard.com
  • 52.47.143.35
  • 52.47.91.37

Add every address for your region, not only the first one.

External Databases section where allowed IP addresses are added


Figure 9: External Databases section where allowed IP addresses are added

Stage 3 — Collect the external hostname

Return to the Grid Control Panel and select View Your Guide. The guide shows your database's external hostname. Note the hostname — CodeGuard needs it to reach the database from outside Media Temple.

Grid Control Panel guide showing the database external hostname

  

 

Figure 10,11: Grid Control Panel guide showing the database external hostname

Stage 4 — Add the database in CodeGuard

  1. Sign in to your CodeGuard account and select the website your database is associated with.
  2. Select Add Database at the bottom of the page.
  3. Enter the external hostname from Stage 3 and select Test Connection.
  4. Review the connection test result. If any address fails, return to Stage 2 and confirm that every CodeGuard IP address for your region is whitelisted in External Databases. When the test passes, select Next Step.
  5. Enter the database username and password created in Stage 1, then select Next Step.
  6. Select your database and select Add Database.


 
Figure 12,13: CodeGuard Add Database screen with the external hostname and connection test




Figure 14, 15: CodeGuard Add Database screen with the external hostname and connection test

 
 



 


Figure 16 -19: CodeGuard Add Database screen with the external hostname and connection test 


How to verify success

CodeGuard displays a confirmation once the database is added, and you can track progress while the first backup runs. CodeGuard sends you an email when the database has finished being added.

Troubleshooting

Issue: The connection test fails for one or more IP addresses.

Cause: Not every CodeGuard IP address for your region is listed in the External Databases section, so Media Temple blocks those connections.

Solution: Return to Stage 2 and add every address for your region, then run Test Connection again. If the test still fails, contact CodeGuard support.

Need assistance?

Contact our team for help with your purchase or issuing your certificate.

Live chat

Call us today