Where to find your database credentials
To add a workspace, ThinkGraph needs read-only access to your WordPress MySQL database. This guide shows how to create a SELECT-only user and where each value lives on the most common hosts.
Connect a siteWhat you need
| ThinkGraph field | Where it comes from |
|---|---|
| Database host | Server host name shown by your host (remote), never “localhost” or 127.0.0.1 |
| Port | 3306 unless your host says otherwise |
| Database user | The SELECT-only user you create (full prefixed name) |
| Password | The password you set for that user |
| Database name | DB_NAME in wp-config.php (full prefixed name) |
| Table prefix | $table_prefix in wp-config.php, usually wp_ |
SELECT and nothing you connect can ever alter your site — even if the credentials leaked. Never use your hosting-account password or your WordPress admin password here.Hostinger
hPanel → Databases → Management and Remote MySQL
- 1
Open the Databases page
Log in to hPanel, choose your website, then open Databases → Management.
- 2
Find your database name and prefix
Your WordPress database is listed there (for example u123456789_wp). The table prefix is $table_prefix in public_html/wp-config.php (File Manager), usually wp_.
- 3
Create the user
Under “Create a new MySQL database and database user” add a user and password, then attach it to your WordPress database. Copy the final name (for example u123456789_tg). Then make it SELECT-only as noted above.
- 4
Allow remote access
Databases → Remote MySQL. In the IP field enter % , choose your database in the dropdown and click Create.
- 5
Get the host name and port
The same Remote MySQL page lists your MySQL hostname (for example srv123.hstgr.io). Use that, not localhost. Port is 3306.
GoDaddy
cPanel hosting → Databases → MySQL / Remote MySQL
- 1
Open cPanel
godaddy.com → My Products → Web Hosting → Manage → cPanel Admin.
- 2
Find your database name and prefix
In File Manager open public_html/wp-config.php. Copy DB_NAME (the database) and $table_prefix (usually wp_). Database names look like acct123_wp.
- 3
Create the SELECT-only user
Databases → MySQL® Databases. Under “MySQL Users → Add New User” create tg_readonly with a long password. Under “Add User To Database” pick that user and your WordPress database, click Add, then untick ALL PRIVILEGES and tick only SELECT. Copy the full user name (it gets your account prefix, e.g. acct123_tg_readonly).
- 4
Allow remote access
Databases → Remote MySQL®. In “Add Access Host” enter % (any address) and click Add Host. ThinkGraph’s server addresses change, so a single IP cannot be given. % is safe because the user can only read.
- 5
Get the host name and port
Use the server name or Shared IP Address from the “General Information” panel on the cPanel home page (not localhost). Port is 3306.
HostGator
Customer Portal → cPanel → MySQL Databases / Remote MySQL
- 1
Open cPanel
HostGator Customer Portal → Hosting → Manage, then open cPanel (or yourdomain.com/cpanel).
- 2
Find your database name and prefix
In File Manager open public_html/wp-config.php. Copy DB_NAME (the database) and $table_prefix (usually wp_). Database names look like acct123_wp.
- 3
Create the SELECT-only user
Databases → MySQL® Databases. Under “MySQL Users → Add New User” create tg_readonly with a long password. Under “Add User To Database” pick that user and your WordPress database, click Add, then untick ALL PRIVILEGES and tick only SELECT. Copy the full user name (it gets your account prefix, e.g. acct123_tg_readonly).
- 4
Allow remote access
Databases → Remote MySQL®. In “Add Access Host” enter % (any address) and click Add Host. ThinkGraph’s server addresses change, so a single IP cannot be given. % is safe because the user can only read.
- 5
Get the host name and port
Use the server name or Shared IP Address from the “General Information” panel on the cPanel home page (not localhost). Port is 3306.
Bluehost
Hosting → Advanced → cPanel → MySQL Databases / Remote MySQL
- 1
Open cPanel
Bluehost → Hosting (or Websites → Settings) → Advanced, then open cPanel.
- 2
Find your database name and prefix
In File Manager open public_html/wp-config.php. Copy DB_NAME (the database) and $table_prefix (usually wp_). Database names look like acct123_wp.
- 3
Create the SELECT-only user
Databases → MySQL® Databases. Under “MySQL Users → Add New User” create tg_readonly with a long password. Under “Add User To Database” pick that user and your WordPress database, click Add, then untick ALL PRIVILEGES and tick only SELECT. Copy the full user name (it gets your account prefix, e.g. acct123_tg_readonly).
- 4
Allow remote access
Databases → Remote MySQL®. In “Add Access Host” enter % (any address) and click Add Host. ThinkGraph’s server addresses change, so a single IP cannot be given. % is safe because the user can only read.
- 5
Get the host name and port
Use the server name or Shared IP Address from the “General Information” panel on the cPanel home page (not localhost). Port is 3306.
Namecheap
Shared hosting cPanel → MySQL Databases / Remote MySQL
- 1
Open cPanel
Namecheap dashboard → Hosting List → Go to cPanel next to your plan.
- 2
Find your database name and prefix
In File Manager open public_html/wp-config.php. Copy DB_NAME (the database) and $table_prefix (usually wp_). Database names look like acct123_wp.
- 3
Create the SELECT-only user
Databases → MySQL® Databases. Under “MySQL Users → Add New User” create tg_readonly with a long password. Under “Add User To Database” pick that user and your WordPress database, click Add, then untick ALL PRIVILEGES and tick only SELECT. Copy the full user name (it gets your account prefix, e.g. acct123_tg_readonly).
- 4
Allow remote access
Databases → Remote MySQL®. In “Add Access Host” enter % (any address) and click Add Host. ThinkGraph’s server addresses change, so a single IP cannot be given. % is safe because the user can only read.
- 5
Get the host name and port
Use the server name or Shared IP Address from the “General Information” panel on the cPanel home page (not localhost). Port is 3306.
SiteGround
Site Tools → Site → MySQL
- 1
Open MySQL
Site Tools → Site → MySQL. The Databases tab lists your WordPress database (the name is also DB_NAME in wp-config.php).
- 2
Create a user
Users tab → create a user and password, then give it access to your WordPress database with read-only privileges if offered.
- 3
Remote access
Remote tab → add the address that will connect. If it will not accept a wildcard, use the plugin keys instead.
Any other host: read wp-config.php
Every WordPress site stores its database details in wp-config.php in the site’s root folder. Open it with your host’s File Manager or FTP and look for:
define( 'DB_NAME', 'acct123_wp' ); // Database name define( 'DB_USER', 'acct123_wpuser' ); // Database user define( 'DB_PASSWORD', '••••••••' ); // Password define( 'DB_HOST', 'localhost' ); // see note below $table_prefix = 'wp_'; // Table prefix
DB_HOST is often localhost, which only works from the hosting server itself. ThinkGraph connects from outside, so use the host’s remote MySQL host name or server IP instead (your host’s docs call it “Remote MySQL” or “external database access”).
Making a SELECT-only user with SQL
If your panel has no privilege checkboxes but gives you phpMyAdmin or a MySQL console and your plan allows GRANT, run this (replace the names and password):
GRANT SELECT ON your_database.* TO 'tg_readonly'@'%' IDENTIFIED BY 'a-strong-password'; FLUSH PRIVILEGES;
Shared hosts often block GRANT. If so, ask support to create a SELECT-only user for you.
Connection failed?
The user, password or database name is wrong, or the user isn’t attached to that database. Use the full prefixed names (acct123_user, not user).
Remote access isn’t enabled. Add % under Remote MySQL, check the host isn’t “localhost”, and confirm port 3306 is not blocked by your host.
The table prefix is wrong. Check $table_prefix in wp-config.php (it may be something like wpx7_).
Some plans (managed WordPress, a few shared tiers) never allow outside connections. Ask your host if a different plan or a VPS is needed.
Ready? Connect your site →