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.
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.
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.
Figure 3: Grid Control Panel with the Manage Database option
Step 4 — Open Users & Settings
Select Users & Settings to view the database users.
Figure 4: Manage Database page with the Users and Settings tab open
Step 5 — Add the user and grant permissions
- Select Add User.
- 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
cguserproduces a full username in the formdb######_cguser. - Select Permissions for the new user.
- 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.
| Region | CodeGuard address | IP addresses to whitelist |
|---|---|---|
| United States | codeguard.com |
|
| Germany | de.codeguard.com |
|
| United Kingdom | uk.codeguard.com |
|
| France | fr.codeguard.com |
|
Add every address for your region, not only the first one.
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.
Figure 10,11: Grid Control Panel guide showing the database external hostname
Stage 4 — Add the database in CodeGuard
- Sign in to your CodeGuard account and select the website your database is associated with.
- Select Add Database at the bottom of the page.
- Enter the external hostname from Stage 3 and select Test Connection.
- 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.
- Enter the database username and password created in Stage 1, then select Next Step.
- Select your database and select Add Database.
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.
Similar questions
Need assistance?
Contact our team for help with your purchase or issuing your certificate.