Mysql_error when resetting root password of MySQL_"Error when establishing a connection to the database"

Asked

Viewed 36 times

-1

I am beginner and do not know how to fix this issue of Wordpress connection to Mysql database.

The error occurs after I reset the root mysql password, the Site crashed and prints the message: "Error when establishing a connection to the database"

1 answer

0

Search for the file wp-config.php in the root directory of your website Wordpress and change the database access credentials. It must be something like this.

/** Nome do banco de dados para o WordPress */
define('DB_NAME', 'u694443746_aujev');
/** Nome do usuário */
define('DB_USER', 'u694443746_vaven');
/** Senha */
define('DB_PASSWORD', 'zuWupEXEdu');
/** MySQL hostname */
define('DB_HOST', 'mysql');
/** Codificação utilizada na criação de tabelas. */
define('DB_CHARSET', 'utf8');
/** O tipo de agrupamento do banco de dados.  Não mude em caso de dúvida. */
define('DB_COLLATE', '');

I used this guide as a reference, for more details check: https://www.hostinger.com.br/tutoriais/como-corrigir-erro-ao-estabelecer-uma-conexao-de-banco-de-dados-no-wordpress/#gref

Browser other questions tagged

You are not signed in. Login or sign up in order to post.