警告:mysqli :: mysqli()[mysqli.mysqli]:(08004/1040):OpenCart中的连接太多 [英] Warning: mysqli::mysqli() [mysqli.mysqli]: (08004/1040): Too many connections in OpenCart

查看:1079
本文介绍了警告:mysqli :: mysqli()[mysqli.mysqli]:(08004/1040):OpenCart中的连接太多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Guys我在我的opencart网站有错误,但实际上的问题是,这个错误也显示我的数据库登录和密码。我如何解决这个问题。

Guys i am having errors in my opencart website, but actually the problem is that this error also displays my database login and password. How can i fix this problem.

出现的错误是

Fatal error: Uncaught exception "ErrorException" with message "Error: Could not make a database link (1040) Too many connections" in /home/*******/public_html/system/database/mysqli.php:9 Stack trace: #0 /home//*******//public_html/vqmod/vqcache/vq2-system_library_db.php(13): DBMySQLi->__construct("localhost", "/*******/", "/*******/", "*******") #1 /home/******/public_html/index.php(46): DB->__construct("mysqli", "localhost", "/*******/", "/*******/", "/*******/") #2 {main} thrown in /home/*******/public_html/system/database/mysqli.php on line 9

OpenCart版本1.5.6.1

OpenCart Version 1.5.6.1

推荐答案

为了解决最紧迫的问题:在生产环境中,关闭错误报告。

To address the most pressing issue: in production environments you should turn off error reporting.

您需要查看一些配置设置:

There are some configuration settings you need to look into:

error_reporting http://php.net/manual /en/function.error-reporting.php

display_errors http://php.net/manual/en/errorfunc.configuration.php#ini.display -errors

为了安全起见,您应该也可以更改数据库密码。即使没有人看到它,这是不值得的风险。

For safety's sake, you should probably change your database password as well. Even if no one has seen it, it's not worth the risk.

有关于太多的问题关于太多的连接问题。这里有一个相当好的upvoted答案: php,mysql - 到数据库的连接太多错误

There are numerous questions on SO about the too many connections issue. Here's one quite well upvoted answer: php, mysql - Too many connections to database error

这篇关于警告:mysqli :: mysqli()[mysqli.mysqli]:(08004/1040):OpenCart中的连接太多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆