|
| 1 | +--- |
| 2 | +title: How to allow remote access to your Web Hosting databases |
| 3 | +description: This page explains how to allow remote access to your Web Hosting databases via cPanel. |
| 4 | +tags: remote webhosting database |
| 5 | +dates: |
| 6 | + validation: 2025-07-29 |
| 7 | + posted: 2025-07-25 |
| 8 | +--- |
| 9 | +import Requirements from '@macros/iam/requirements.mdx' |
| 10 | +import RemoteDBAccess from './assets/scaleway-remote-db-access.webp' |
| 11 | +import RemoteDBAccessPage from './assets/scaleway-remote-db-access-page.webp' |
| 12 | + |
| 13 | +This page shows you how to allow remote access to your Web Hosting databases. |
| 14 | + |
| 15 | +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. |
| 16 | + |
| 17 | +<Requirements /> |
| 18 | + |
| 19 | +- A Scaleway account logged into the [console](https://console.scaleway.com) |
| 20 | +- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization |
| 21 | +- [Ordered](/webhosting/how-to/order-webhosting/) a **cPanel** Web Hosting plan |
| 22 | +- [Created](/webhosting/how-to/manage-databases/#how-to-create-a-database) at least one database |
| 23 | +- The IPv4 or IPv6 address of the device you want to use to connect to the database |
| 24 | + |
| 25 | + |
| 26 | +## How to allow remote access to your Web Hosting database |
| 27 | + |
| 28 | +1. Click **Web Hosting** in the **Domains & Web Hosting** section of the [console](https://console.scaleway.com/) side menu. |
| 29 | +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. |
| 30 | +3. Click the **Overview** tab, then click **Open hosting dashboard**. The cPanel login page displays in a new tab. |
| 31 | +4. Log in to cPanel using your username and password. |
| 32 | +5. In the cPanel search bar type `Remote Database Access` and click the first result that displays in the drop-down. |
| 33 | + <Lightbox image={RemoteDBAccess} alt="" /> |
| 34 | +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. |
| 35 | + <Lightbox image={RemoteDBAccessPage} alt="" /> |
| 36 | + <Message type="tip"> |
| 37 | + Paste one of the following links into your browser if you do not know what your IP address is: |
| 38 | + - `ip.scw.site` to find out what your current public IP is (IPv4 or IPv6), |
| 39 | + - `v4.ip.scw.site` to find out what your IPv4 address is, or, |
| 40 | + - `v6.ip.scw.site` to find out what your IPv6 address is. |
| 41 | + If your device supports both IPv4 and IPv6, you can add both addresses. |
| 42 | + </Message> |
| 43 | + |
| 44 | +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.) |
| 45 | +8. Click **Add Host** to confirm. A green message box displays informing you that the IP address was added as a host. |
| 46 | + |
| 47 | + <Message type="important"> |
| 48 | + For security reasons, we recommend only adding trusted IP addresses. |
| 49 | + </Message> |
0 commit comments