Error connecting to dc database
If you come to your web page one of the two messages as follows:
Lỗi thiết lập cơ sở dữ liệu
Error connecting to the database
Most of this is because you mistyped the name of the database in the config file. Each one of the code will have a different config file, such as the WordPress wp-config.php, so how do we find the config file. We will use Notepad ++ to locate the config file and proceed to edit it. You can download Notepad ++ here and see how to find the config file here
We will open the config file and find the section containing the database account information, here I will take the example Wp-config.php file of WordPress. You fill in the database parameters and then save.
In other cases, you might want to try restarting your mySQL or MariaDB service, which is sometimes just a small SQL error on the server.