Base de conhecimento

Reaching your database

Where the credentials are, how to open a database browser, and how to take a dump safely.

Zinn®, o nosso viking, a ler a sua lista de verificação ao lado de um índice de artigos com um aberto.

Sites → your site → Database.

The credentials

Host, database name, user and password are on that screen. On a WordPress site they are already in wp-config.php — you do not need to copy them anywhere for the site to work.

Browsing it

The Database screen opens a browser in your session, scoped to that one database. Nothing to install and no port to open.

From your own machine

The database is not exposed to the public internet. Connect over the SSH tunnel instead — your client's "SSH tunnel" option, using the SSH details from Sites → your site → Access. That is the same door, authenticated by your key.

Taking a dump

From the shell:

mysqldump -u USER -p DBNAME > backup.sql

wp db export does not work in the shell here: it starts mysqldump as a separate program, and PHP on our servers is not allowed to start programs (see "Getting file and shell access to a site"). Running mysqldump yourself gives you the same file.

⚠️ A dump is not a backup. It is the database without the files, so it cannot restore a site on its own. Use Backups if what you want is a restorable copy — those hold both, and they are already being taken.

If the site says it cannot connect to the database

Almost always a credential that was edited by hand in wp-config.php. The Database screen shows the true values; put those back. If they match and it still fails, open a ticket — that is ours to fix, not yours.

Este artigo ainda não foi traduzido para o seu idioma, pelo que está a ler a versão em inglês.

Mais recentes do blogue

O que temos escrito sobre alojamento, SEO e gestão de sites em escala.

SEO and Link Building from the Hosting Layer: A 2026 Operator's View

How hosting shapes indexing and link equity in 2026: keeping pages indexed, vetting aged domains before you build on them, link building without a footprint, and an honest line on what infrastructure can and cannot do for SEO.

Ler o artigo →

Making WordPress Fast and Secure: A Performance and Plugin Checklist

A practical checklist for fast, secure WordPress: server-level caching, a per-site object cache, the handful of plugins worth running, keeping the stack current, and the WooCommerce pages you must never cache.

Ler o artigo →

How to Choose Managed Web Hosting in 2026: A Buyer's Guide

What actually separates good managed hosting from a cheap box with a control panel — migrations, backups, isolation, real caching and honest scaling — and how to judge it before you commit.

Ler o artigo →

Ler o blogue →

Ainda com dúvidas?

O suporte está incluído em todos os planos, o apoio está disponível 24 horas por dia e pode escrever-nos em qualquer um dos nossos 59 idiomas — respondemos-lhe no seu.

Contactar o suporte Todos os artigos