Pagina 1 din 1

Eroare - has more than max_user_connections

Scris: Dum Sep 29, 2013
de alexinio3d
Salutare .
De ce imi da urmatoarea eroare la fisierul config.php ?

Cod: SelectaĊ£i tot

[29-Sep-2013 08:15:20 UTC] PHP Warning:  mysqli::mysqli() [<a href='mysqli.mysqli'>mysqli.mysqli</a>]: (42000/1203): User x15black_tforum already has more than 'max_user_connections' active connections in /home/x15black/public_html/treisute.ro/config.php on line 8
[29-Sep-2013 08:15:20 UTC] PHP Warning:  mysqli::query() [<a href='mysqli.query'>mysqli.query</a>]: Couldn't fetch mysqli in /home/x15black/public_html/treisute.ro/config.php on line 9
Aici aveti config.php :

Cod: SelectaĊ£i tot

<?php
// Parametri SQL forum

$_mysql_host="localhost"; // Host baza de date
$_mysql_db="x15black_tforum"; // Baza de date
$_mysql_user="x15black_tforum"; // User baza de date
$_mysql_password="8!r6,.9{4(]L"; // Parola baza de date
$connect = new mysqli($_mysql_host, $_mysql_user, $_mysql_password, $_mysql_db);
$connect->query("SET NAMES utf8");
if (mysqli_connect_errno()) {
  exit('Connect failed: '. mysqli_connect_error());
}
?>

Eroare - has more than max_user_connections

Scris: Dum Sep 29, 2013
de MarPlo
Salut
Eroarea nu e de la codul php, ci de la setarea pe server pt MAX_CONNECTIONS (in fisierul "my.ini") si numarul de conexiuni intr-un timp foarte scurt.
Eroarea apare cand sunt mai multe conectari la baza de date in timp scurt decat valoarea setata la MAX_CONNECTIONS. Cauza poate fi de la vreu Bot care face accesari dese, sau script JS cum ar fi unul de chat.
Nu am exprienta cu asa ceva; vezi ce gasesti pe Google la cautare:
already has more than max_user_connections active connections