Türkce » WHM cPanel

max_user_connections & [Socket Hatasi]

http://forum.whmdestek.com/

Go Back   WHM/cPanel Support Platform » Türkce » WHM cPanel
 

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 26.11.07, 12:29
tespara's Avatar
Gamzede
 
Join Date: Jun 2007
Location: dersaadet
Posts: 67
Rep Power: 43
tespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond repute
Send a message via MSN to tespara Send a message via Skype™ to tespara
max_user_connections & [Socket Hatasi]

PHP Code:
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]:
User X has already more than 'max_user_connections' active connections
.../includes/class_core.php on line 273 
-Varsayilan etkin baglanti siniri asilmis. Bu hatanin cikis sebebi :
-Yanlis config.php dosyasi ayari veya
- Hosting firmasinin istemci tarafindan talep edilen baglanti istegine cevap verememesi bizatihi socket kapatmasi ve mysql suncusunun cökmesi

Socket : Socket port atanmis IP adresidir.

config.php dosyasinda bu soruna yol acabilecek degisken class_core.php dosyasinin 273. nolu satirinda baglanti komutunun bagimli oldugu degisken asagidaki gibi olmalidir

PHP Code:
$config['MasterServer']['usepconnect'] = 0
ve

Yetersiz kalan azami kullanici baglanti sayisi (max_user_connections) bu degiskenin degeri artirilarak sorunun 1 nolu ayagi cözülebilir

Bunun icin hosting firmasi ile irtibata gecilir ve denirki : "my.cnf dosyasi icinde max_user_connections degiskeni ile belirlerlene azami kullanici baglanti sayisi su anki degerden 5-10 kat artirilir mesela 400"

su an ki mysql degiskenleri asagidaki yol ile görülebilir

AdminCP > Maintenance > Diagnostics - System Information - MySql variables

veya asagidaki cözümü uygulayarak kismi bir cözüme ulasabilrsiniz
(Hosting firmasi tarafindan belirlenen siniri bu yolla asmak sorun hosting firmasi tarafindan yasaklanmis olabilir)
==================================================

1- dB icin yeni kullanicilar olusturun
2- config.php dosyasinda asagidaki satirlari bulun
PHP Code:
 // ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'root';
$config['MasterServer']['password'] = ''
Bu kismi asagidaki ile degistirin ( Buradaki bilgiler yeni olusturdugunu db kullanici adi ve sifrelerine göre düzenlenecaktir)

PHP Code:
 // ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$dbusers = array(
array(
'user' => 'mysql_username_1''password' => 'mysql_password_1'// First MySQL user/password combination
, array('user' => 'mysql_username_2''password' => 'mysql_password_2'// Second MySQL user/password combination
, array('user' => 'mysql_username_3''password' => 'mysql_password_3'// Third MySQL user/password combination
);
$mysql_user $dbusers[rand(0count($dbusers) - 1)];
$config['MasterServer']['username'] = $mysql_user['user'];
$config['MasterServer']['password'] = $mysql_user['password']; 
__________________
cok kaygi cekme, mukadder olan olur, takdir olunan rizkin da sana gelir.[Hz Muhammed (S.A.V)]
siir vardir ki, hikmettir. Beyân vardir ki, büyüdür.[Hz Muhammed (S.A.V)]
Kim, bir zümreye benzemeye calisirsa, o, onlardandir.[Hz Muhammed (S.A.V)]
Hikmetin basi, Allah korkusudur.[Hz Muhammed (S.A.V)]
Elif Lam Mim. insanlar "inandik" deyip kurutlacaklarinimi sanirlar [Ankebut ,1]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




netinternet

Navigasyon
Menü