hlmod.hu
https://hlmod.hu/

WebAdmin FATAL ERROR
https://hlmod.hu/viewtopic.php?f=18&t=22297
Oldal: 1 / 1

Szerző:  Anonymous1337 [ 2015.10.01. 13:52 ]
Hozzászólás témája:  WebAdmin FATAL ERROR

Sziasztok. Van egy WebAdminom, de fatal errort dob, pedig mindent jól írtam be.

Kód:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000] [1226] User 'u886298372_game' has exceeded the 'max_user_connections' resource (current value: 3)' in /home/u886298372/public_html/webadmin/cfg/cfg.php:11 Stack trace: #0 /home/u886298372/public_html/webadmin/cfg/cfg.php(11): PDO->__construct('mysql:dbname=u8...', 'u886298372_game', 'jelszó') #1 /home/u886298372/public_html/webadmin/cfg/SSH2.php(49): nWebadmin->__construct() #2 /home/u886298372/public_html/webadmin/index.php(5): SSH2->__construct('mysql.hostinger...') #3 {main} thrown in /home/u886298372/public_html/webadmin/cfg/cfg.php on line 11


cfg.php:

Kód:
   function __construct() {
      $this -> db = new PDO("mysql:dbname=Adatbázis neve;host=MySQL Hoszt","MySQL Felhasználónév","JELSZÓ");
      $this -> db2 = new PDO("mysql:dbname=Adatbázis neve;host=MySQL Hoszt","MySQL Felhasználónév","JELSZÓ");
      $this -> db -> query("SET NAMES UTF8");


SSH2.php

Kód:
class SSH2 extends nWebadmin {

   var $ssh;
   var $stream;
      
   function __construct($host, $port=22) {
      parent::__construct();
      if (!$this->ssh = ssh2_connect($host, $port)) {
         return false; 
      }
      if($this -> isLogged()) {
         $this -> auth("MySQL Hoszt", "JELSZÓ");
         
         foreach($this -> db -> query("SELECT port FROM `servers` WHERE owner = '".$this -> Username()."'") as $isex) {
            if($this -> isExpire($isex["port"])) $this -> ServerStop($isex["port"]);
         }
      
      }
   }


Előre is köszönöm a válaszokat!

Szerző:  CrB [ 2015.10.01. 20:41 ]
Hozzászólás témája:  Re: WebAdmin FATAL ERROR

A hiba ott van abban amit leírtál.
User 'u886298372_game' has exceeded the 'max_user_connections' resource (current value: 3)'

Megoldás: https://forums.cpanel.net/threads/user- ... ce.425802/

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/