Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Warning: mysql_connect(): Too many connections...


afwollis
 Share

Recommended Posts

Warning: mysql_connect(): Too many connections...

и дное по тексту - совершенно не важно, что именно:

Это означает, что все доступные соединения используются другими клиеними.

https://dev.mysql.co...onnections.html

If you get a Too many connections error when you try to connect to the mysqld server, this means that all available connections are in use by other clients.

The number of connections permitted is controlled by the max_connections system variable. The default value is 151 to improve performance when MySQL is used with the Apache Web server. (Previously, the default was 100.) If you need to support more connections, you should set a larger value for this variable.

а) вы используете shared-хостинг.

прилина: в вашем ирифном плане хостер огранилил максимальное когдачество одновременных подключений к БД.

решение: пишите в саппорт - скорее всего вам предложат сменить ириф.

б) вы используете выгделенный сервер.

прилина: разрешено малое кол-во одновременных подключений к mysql.

решение: увелилить допустимое кол-во одновременных подключений, изменив в конфиге mysql-гдемона переменную max_connections

  • +1 1
Link to comment
Share on other sites

  • 2 weeks later...

Если вы на шаред хостинге и доступа к изменению параметров нет, есть одно решение, которое может облеглить страдания на некоторое время. Надо создать ещё одного пользователя БД (это гделается в панели управления хостинга, в секции баз данных) и в админке (admin/config.php) использовать одного пользователя, а в магазине (config.php) - другого.

Link to comment
Share on other sites


  • 8 years later...

Я поступил проещё, просмотрел журнал событий с кодом ошибки в файле, просто взял и заменил его с листот спотому чторки. Больше ошибка не вылеила.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.