M
M
Michael2018-02-02 01:36:47
MySQL
Michael, 2018-02-02 01:36:47

How can I solve the database problem?

I mean, I put the online store on hosting and everything seemed to be set up, but there is such a problem with the site address
Warning: mysqli_connect(): (28000/1045): Access denied for user 'admin_magaz'@'localhost' (using password: YES) in / home/admin/web/xenoshops.com/public_html/lib/class_db.php on line 83
Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /home/admin/web/xenoshops.com/public_html/lib/ class_db.php on line 426
Warning: mysqli_errno() expects parameter 1 to be mysqli, boolean given in /home/admin/web/xenoshops.com/public_html/lib/class_db.php on line 427
changing logins and passwords in config.ini .php does not help, you are the last hope of a noob to end this suffering :C

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
Boris Syomov, 2018-02-02
@Hesiod

A database and a user for it must be created on the hosting.
The username, password, database name and hostname (it may well not be localhost on your hosting), registered in your site settings, must be the same as the database created for this project.
Also, if the site was developed somewhere and you do not have a fresh installation, but a transfer, you still need to upload the database dump to the hosting database.

S
Stalker_RED, 2018-02-02
@Stalker_RED

Access denied for user 'admin_magaz'@'localhost'

And the warning is a consequence of this error.
changing logins and passwords in config.ini.php does not help
You don't randomly put them in there, do you?

A
Ainur Valiev, 2018-02-02
@vaajnur

Look at a connection - where that is not correct. Or login, or password, as well as the server itself. Not always localhost

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question