<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged max-user-connections</title>
<link>https://www.question2answer.org/qa/tag/max-user-connections</link>
<description>Powered by Question2Answer</description>
<item>
<title>max_user_connections error again and again. Does q2a close connections?</title>
<link>https://www.question2answer.org/qa/50305/max_user_connections-error-again-again-close-connections</link>
<description>

&lt;p&gt;I am still not rid of this error, see also &lt;a href=&quot;http://www.question2answer.org/qa/18513/already-max_user_connections-active-connections-include&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/qa/18513/already-max_user_connections-active-connections-include&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#FF0000&quot;&gt;PHP Warning:&amp;nbsp; mysqli::mysqli(): (HY000/1203): User db348277_6 already has more than 'max_user_connections' active connections in /qa-include/qa-db.php on line 66&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;In the &lt;a rel=&quot;nofollow&quot; href=&quot;http://www.inmotionhosting.com/support/website/database-troubleshooting/why-do-i-get-a-maxuserconnections-error&quot;&gt;net&lt;/a&gt; I read:&lt;/p&gt;

&lt;p&gt;&quot;Your code is opening the connection to the database, but not closing it. Please see the following link for more help with properly opening and closing your database connections&quot;&lt;/p&gt;

&lt;p&gt;Could it be that q2a does not close the connections?&lt;/p&gt;

&lt;p&gt;- - -&lt;/p&gt;

&lt;p&gt;Note, I have no root access and cannot change the value of &quot;max_user_connections&quot;. It is set to 35. This I found out by: &quot;SHOW GLOBAL VARIABLES LIKE '%connections%'&lt;/p&gt;

&lt;p&gt;- - -&lt;/p&gt;

&lt;p&gt;My provider informed me that they will not increase this value on shared hosting, only on managed server which would cost me 100+ Euros :(&lt;/p&gt;

&lt;p&gt;So I wonder if the &quot;hack solution&quot; on stackoverflow: &lt;a href=&quot;http://stackoverflow.com/q/11183727/1066234&quot; rel=&quot;nofollow&quot;&gt;http://stackoverflow.com/q/11183727/1066234&lt;/a&gt; could be one way for us: Disable this error warning by &lt;strong&gt;@&lt;/strong&gt;mysql_connect() ?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/50305/max_user_connections-error-again-again-close-connections</guid>
<pubDate>Wed, 10 Feb 2016 10:40:17 +0000</pubDate>
</item>
<item>
<title>Warning: mysql_pconnect() [function.mysql-pconnect]: User 'surakz5_surak' has exceeded the 'max_user</title>
<link>https://www.question2answer.org/qa/19116/mysql_pconnect-function-pconnect-surakz5_surak-exceeded</link>
<description>

&lt;p&gt;
	
&lt;br style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;
	&lt;b style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;Warning&lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;: mysql_pconnect() [&lt;/span&gt;&lt;a href=&quot;http://surak-zhauap.kz/function.mysql-pconnect&quot; rel=&quot;nofollow&quot; style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;function.mysql-pconnect&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;]: User 'surakz5_surak' has exceeded the 'max_user_connections' resource (current value: 30) in&lt;/span&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;/home/surakz5/public_html/qa-include/qa-db.php&lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;64&lt;/b&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;

	

&lt;p&gt;
		&lt;span style=&quot;color: #990000;&quot;&gt;Could not establish database connection. Please check the username, password and hostname in the config file, and if necessary set up the appropriate MySQL user and privileges.&lt;/span&gt;&lt;/p&gt;



&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/19116/mysql_pconnect-function-pconnect-surakz5_surak-exceeded</guid>
<pubDate>Mon, 12 Nov 2012 10:57:29 +0000</pubDate>
</item>
<item>
<title>User already has more than 'max_user_connections' active connections in /qa-include/qa-db.php on line 66</title>
<link>https://www.question2answer.org/qa/18513/already-max_user_connections-active-connections-include</link>
<description>

&lt;p&gt;
	My server's error log says:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:lucida sans unicode,lucida grande,sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;PHP Warning:&amp;nbsp; mysql_connect() [&amp;lt;a href='function.mysql-connect'&amp;gt;function.mysql-connect&amp;lt;/a&amp;gt;]: User db123456 already has more than 'max_user_connections' active connections in /qa-include/qa-db.php on line 66&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	This error appeared yesterday, 20-Oct-2012, from 18:50:17 to 18:51:01 (about 3 times per second), and 18:53:40 to 18:53:47 (about 3 times per second).&lt;/p&gt;


&lt;p&gt;
	--&lt;/p&gt;


&lt;p&gt;
	On &lt;a href=&quot;http://stackoverflow.com/questions/4079531/mysqli-error-user-already-has-more-than-max-user-connections-active-connectio&quot; rel=&quot;nofollow&quot;&gt;stackoverflow&lt;/a&gt; they say it is &quot;not a programming problem, just quantity of resources available&quot;.&lt;/p&gt;


&lt;p&gt;
	But why haven't I got this error over the last 7 months?&lt;/p&gt;


&lt;p&gt;
	--&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;Update 2012-12-14&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	My server logs showed me that a Chinese bot was going over&lt;strong&gt; a lot of tags,&lt;/strong&gt; which obviously caused the error, here some lines:&lt;/p&gt;


&lt;p&gt;
	[11-Dec-2012 18:58:39] PHP Warning:&amp;nbsp; mysql_connect() [&amp;lt;a href='function.mysql-connect'&amp;gt;function.mysql-connect&amp;lt;/a&amp;gt;]: User 123456 already has more than 'max_user_connections' active connections in /qa-include/qa-db.php on line 66&lt;/p&gt;


&lt;p&gt;
	42.62.36.25 - - [11/Dec/2012:18:58:39 +0100] &quot;GET /tag/schaubid HTTP/1.0&quot; 200 6491 &quot;&lt;a href=&quot;http://www.mysite.de/&quot;&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.de/&quot;&lt;/a&gt; &quot;Moziella/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1.2) Firefox/3.5.2&quot;
&lt;br&gt;
	42.62.36.25 - - [11/Dec/2012:18:58:39 +0100] &quot;GET /tag/sattelpunkt HTTP/1.0&quot; 200 647 &quot;&lt;a href=&quot;http://www.mysite.de/&quot;&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.de/&quot;&lt;/a&gt; &quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1.2) Firefox/3.5.2&quot;
&lt;br&gt;
	42.62.36.25 - - [11/Dec/2012:18:58:39 +0100] &quot;GET /tag/binomisch HTTP/1.0&quot; 200 647 &quot;&lt;a href=&quot;http://www.mysite.de/&quot;&quot; rel=&quot;nofollow&quot;&gt;http://www.mysite.de/&quot;&lt;/a&gt; &quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1.2) Firefox/3.5.2&quot;
&lt;br&gt;
	...&lt;/p&gt;


&lt;p&gt;
	How to solve/prevent this?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18513/already-max_user_connections-active-connections-include</guid>
<pubDate>Sun, 21 Oct 2012 07:02:04 +0000</pubDate>
</item>
<item>
<title>Max User Connections</title>
<link>https://www.question2answer.org/qa/14988/max-user-connections</link>
<description>

&lt;p&gt;
	&lt;span style=&quot;font-size:14px;&quot;&gt;I have received following error: How can fix this error?&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;b style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;Warning&lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;: mysql_connect() [&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: medium;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;function.mysql-connect&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;]: User av_admin already has more than 'max_user_connections' active connections in&lt;/span&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;/home/av/public_html/qa-include/qa-db.php&lt;/b&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; text-align: center;&quot;&gt;66&lt;/b&gt;&lt;/p&gt;

	

&lt;p&gt;
		&lt;span style=&quot;color: #990000;&quot;&gt;Could not establish database connection. Please check the username, password and hostname in the config file, and if necessary set up the appropriate MySQL user and privileges.&lt;/span&gt;&lt;/p&gt;



&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/14988/max-user-connections</guid>
<pubDate>Mon, 14 May 2012 03:35:21 +0000</pubDate>
</item>
</channel>
</rss>