Skip to content

docs(add): add doc to allow remote mysql access #5336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions menu/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -3165,6 +3165,10 @@
"label": "Manage databases",
"slug": "manage-databases"
},
{
"label": "Allow remote access to Web Hosting databases",
"slug": "remote-access-wbh-db"
},
{
"label": "Manage email accounts",
"slug": "manage-email-accounts"
Expand Down
Binary file not shown.
Binary file not shown.
49 changes: 49 additions & 0 deletions pages/webhosting/how-to/remote-access-wbh-db.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
title: How to allow remote access to your Web Hosting databases
description: This page explains how to allow remote access to your Web Hosting databases via cPanel.
tags: remote webhosting database
dates:
validation: 2025-07-29
posted: 2025-07-25
---
import Requirements from '@macros/iam/requirements.mdx'
import RemoteDBAccess from './assets/scaleway-remote-db-access.webp'
import RemoteDBAccessPage from './assets/scaleway-remote-db-access-page.webp'

This page shows you how to allow remote access to your Web Hosting databases.

By default, Web Hosting databases can only be accessed from within your hosting environment for security reasons. If you want to connect to your MySQL database remotely (for example, from your computer or a third-party server), you need to add the IP address of the device as an authorized host in cPanel.

<Requirements />

- A Scaleway account logged into the [console](https://console.scaleway.com)
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
- [Ordered](/webhosting/how-to/order-webhosting/) a **cPanel** Web Hosting plan
- [Created](/webhosting/how-to/manage-databases/#how-to-create-a-database) at least one database
- The IPv4 or IPv6 address of the device you want to use to connect to the database


## How to allow remote access to your Web Hosting database

1. Click **Web Hosting** in the **Domains & Web Hosting** section of the [console](https://console.scaleway.com/) side menu.
2. Click <Icon name="more" /> and **More info**, or the domain name of the Web Hosting you want to configure. The **Hosting information** page displays.
3. Click the **Overview** tab, then click **Open hosting dashboard**. The cPanel login page displays in a new tab.
4. Log in to cPanel using your username and password.
5. In the cPanel search bar type `Remote Database Access` and click the first result that displays in the drop-down.
<Lightbox image={RemoteDBAccess} alt="" />
6. In the **Host** field, enter the IPv4 or IPv6 address of the device or server you want to allow to connect to your MySQL database remotely.
<Lightbox image={RemoteDBAccessPage} alt="" />
<Message type="tip">
Paste one of the following links into your browser if you do not know what your IP address is:
- `ip.scw.site` to find out what your current public IP is (IPv4 or IPv6),
- `v4.ip.scw.site` to find out what your IPv4 address is, or,
- `v6.ip.scw.site` to find out what your IPv6 address is.
If your device supports both IPv4 and IPv6, you can add both addresses.
</Message>

7. Optionally, add a comment in the **Comment** field. For example you can specify who the host is (`my-computer`, `IP-address-from-work`, etc.)
8. Click **Add Host** to confirm. A green message box displays informing you that the IP address was added as a host.

<Message type="important">
For security reasons, we recommend only adding trusted IP addresses.
</Message>
Loading