A
A
Andrey2016-03-11 23:10:57
MySQL
Andrey, 2016-03-11 23:10:57

Changed the user password to access the database. How to fix an error on the site?

Changed the user password to access the MySQL database. The following errors came up on the
Warning site: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'open_mysql'@'###########' (using password: YES) in /home/open/#################.ru/docs/system/library/db/mysqli.php on line 7
Notice: Error: Could not make a database link (1045) Access denied for user 'open_mysql'@'#############' (using password: YES) in /home/open/########## #######.ru/docs/system/library/db/mysqli.php on line 10
Warning: mysqli::close() [mysqli.close]: Couldn't fetch mysqli in /home/open/# ################.ru/docs/system/library/db/mysqli.php on line 58 ############## -- this is just painted over the addresses
How to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2016-03-11
@unitby

so on the site to change too. writes that the password is incorrect in the config

D
Dmitry, 2016-03-11
@ExileeD

Judging by the style of the code, this is opencart. You need to change these lines
in the config.php and admin/config.php file

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'mysql_user');
define('DB_PASSWORD', 'mysql_password');
define('DB_DATABASE', 'mysql_db');
define('DB_PREFIX', 'oc_');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question