thesnarkie Posted March 26, 2010 Report Share Posted March 26, 2010 Warning: mysqli::mysqli() [mysqli.mysqli]: (08004/1040): Too many connections ... Kad parasti šis parādās un kā novērst? (neskaitot max_connections palielināšanu) Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted March 26, 2010 Report Share Posted March 26, 2010 Tas parādās, ja neaizver atvērtās konekcijas un ja izmanto persistentās konekcijas, kuras ver katru reizi no jauna. http://lv.php.net/manual/en/mysqli.close.php Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 26, 2010 Report Share Posted March 26, 2010 principaa konekcija tiek aizverta automatiski. Shii kljuda prasti paraadas uz localhost (testejot), jo SQL serveris dazreiz censhas saglabat konekciju. Stipri sen saskaros ar sho pashu problemu ( Tobriid bija WIN 98 un Mysql vers 3.xxx). -- Principa SQL konekcija javeic tikai 1 reizi , skripta sakumaa, ja veiksi N-tas reizes, tad var buut visadi 'brinumi' -- nu jaa, vel: mysql_connect() teoretiski aizver konekciju mysql_pconnect(),saglaba jau esosho --- izmantojot pedejo uz localhost VAR( un pat ljoti iespejams) buus problemas.. Ja vien konekciju neslegsi.. -- Katras metodes ( conect VAI Pconect) izmntosana ir smera inviduals procees , atkriiba no OS etc... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.