|
| 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-25 |
| 7 | + posted: 2025-07-25 |
| 8 | +--- |
| 9 | +import Requirements from '@macros/iam/requirements.mdx' |
| 10 | +import CopyDBID from './assets/scaleway-copy-ip-db.webp' |
| 11 | +import RemoteDBAccess from './assets/scaleway-remote-db-access.webp' |
| 12 | +import RemoteDBAccessPage from './assets/scaleway-remote-db-access-page.webp' |
| 13 | + |
| 14 | +This page shows you how to allow remote access to your Web Hosting databases. |
| 15 | + |
| 16 | +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. |
| 17 | + |
| 18 | +<Requirements /> |
| 19 | + |
| 20 | +- A Scaleway account logged into the [console](https://console.scaleway.com) |
| 21 | +- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization |
| 22 | +- [Ordered](/webhosting/how-to/order-webhosting/) a **cPanel** Web Hosting plan |
| 23 | +- [Created](/webhosting/how-to/manage-databases/#how-to-create-a-database) at least one 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 **Databases** tab, then click the IP address displayed next to **Databases IP** to copy it. |
| 31 | + <Lightbox image={CopyDBID} alt="" /> |
| 32 | + <Message type="tip"> |
| 33 | + Make sure that you keep it copied, as you will need it in the next steps. |
| 34 | + </Message> |
| 35 | +4. Click the **Overview** tab, then click **Open hosting dashboard**. The cPanel login page displays in a new tab. |
| 36 | +5. Log in to cPanel using your username and password. |
| 37 | +6. In the cPanel search bar type `Remote Database Access` and click the first result that displays in the drop-down. |
| 38 | + <Lightbox image={RemoteDBAccess} alt="" /> |
| 39 | +7. In the **Host** field, paste the IP address you have copied in step 3. |
| 40 | + <Lightbox image={RemoteDBAccessPage} alt="" /> |
| 41 | + |
| 42 | + <Message type="note"> |
| 43 | + A host is the IP address of the device or server you want to allow to connect to your MySQL database remotely. |
| 44 | + </Message> |
| 45 | +8. Optionally, add a comment in the **Comment** field. For example you can specify who the host is (`my-computer`, `IP-address-from-work`, etc.) |
| 46 | +9. Click **Add Host** to confirm. A green message box displays informing you that the IP address was added as a host. |
| 47 | + |
| 48 | + <Message type="important"> |
| 49 | + Fore security reasons, we recommend only adding trusted IP addresses. |
| 50 | + </Message> |
0 commit comments