MySQL_Error when resetting MySQL root password_ "Error when establishing a connection to the database"

-1

I'm a beginner and I'm not sure how to fix this Wordpress connection issue with the Mysql database.

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

    
asked by anonymous 03.01.2019 / 00:55

1 answer

0

Search for the wp-config.php file in the root directory of your WordPress site and change the access credentials of the database. It should look 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 have used this guide as a reference, for more details check it out:

    
03.01.2019 / 01:04