By default your database only accepts connections from the server itself. To connect from your computer or an external application, you allow remote MySQL access for a specific address. This guide explains how in cPanel, safely.
Quando você precisar disso #
- Connecting a desktop tool like MySQL Workbench.
- Allowing an external application or server to reach the database.
- Letting a developer connect remotely.
Allowing a host #
- Faça login no cPanel.
- No Bancos de dados seção, abrir Remote MySQL.
- Enter the IP address allowed to connect.
- Clique em Add Host.
A segurança em primeiro lugar #
- Allow specific IPs, never a wildcard open to everyone.
- Use uma senha forte para o banco de dados.
- Remove hosts you no longer need.
Conectando #
Use your database name, user, password, the server hostname or IP, and port 3306 in your remote tool. If your home IP changes, update the allowed address when needed.
Solução de problemas #
- Conexão recusada: confirm your current IP is on the list.
- Acesso negado: re-check the user and password.
Precisa de ajuda? #
Caso o acesso remoto não consiga se conectar, nossa equipe de suporte poderá ajudar por meio do chat ao vivo.