无法访问我的网站/管理员

时间:2017-03-20 18:47:52

标签: mysql web admin

每当我访问我的网站的地址/管理员时,都会出现

Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'hotstepp_ocart25'@'localhost' (using password: YES) in /home/hotstepp/public_html/system/library/db/mysqli.php on line 7

Warning: mysql_error() expects parameter 1 to be resource, object given in /home/hotstepp/public_html/system/library/db/mysqli.php on line 10

Warning: mysql_errno() expects parameter 1 to be resource, object given in /home/hotstepp/public_html/system/library/db/mysqli.php on line 10

Notice: Undefined variable: trace in /home/hotstepp/public_html/system/library/db/mysqli.php on line 10

Notice: Undefined variable: trace in /home/hotstepp/public_html/system/library/db/mysqli.php on line 10

Notice: Undefined variable: sql in /home/hotstepp/public_html/system/library/db/mysqli.php on line 10

Fatal error: Uncaught exception 'Exception' with message 'Error: <br />Error No: <br /> Error in: <b></b> line <b></b><br />' in /home/hotstepp/public_html/system/library/db/mysqli.php:10 Stack trace: #0 /home/hotstepp/public_html/system/library/db.php(9): DB\MySQLi->__construct('localhost', 'hotstepp_ocart2...', 'S(D!79r0HP', 'hotstepp_ocart2...', '3306') #1 /home/hotstepp/public_html/system/framework.php(25): DB->__construct('mysqli', 'localhost', 'hotstepp_ocart2...', 'S(D!79r0HP', 'hotstepp_ocart2...', '3306') #2 /home/hotstepp/public_html/index.php(22): require_once('/home/hotstepp/...') #3 {main} thrown in /home/hotstepp/public_html/system/library/db/mysqli.php on line 10

我该如何解决?

由于

最好的问候

1 个答案:

答案 0 :(得分:0)

看起来,你有两个不同的MySQL密码 - 一个用于公共用户(可能 - 授予SELECT,可能INSERT到一些评论表或smth),另一个用于管理部分。而管理员网站的密码是错误的。检查配置,尝试更改密码。可以尝试公共配置的密码,但仅用于测试连接 - 如果权限被正确授予,管理面板可以停止工作。