ERROR » Database connection error! Please check your connection settings! [Only one usage of each socket address (protocol/network address/port) is normally permitted]

     C:\inetpub\vhosts\sayngrup.com\httpdocs\Internal\package-database\Connection.php
        

155.     public function __construct(array $config = [])
156.     {
157.         $this->defaultConfig Config::default('ZN\Database\DatabaseDefaultConfiguration')
158.                                      ::get('Database''database');
159.         $this->config        array_merge($this->defaultConfig$config);
160.         $this->db            $this->runDriver();
161.         $this->prefix        $this->config['prefix'];
162.         Properties::$prefix  $this->prefix;
163. 
164. 
        
$this->db->connect($this->config); 165.     } 166.  167.     /** 168.      * Magic Debug Info 169.      */ 170.     public function __debugInfo() 171.     { 172.         return ['return' => $this->stringQuery ?: 'This is a general object, please call the sub method!']; 173.     } 174. 
     C:\inetpub\vhosts\sayngrup.com\httpdocs\Projects\Frontend\Models\CategoryModel.php
        

45. 
46. 
47. 
48.     // Get by Slug
49.     public function getBySlug($get null){
50. 
51.       return DB::where([
52.             ["status"1"and"],
53.             ["slug_tr"$get"or"],
54. 
            [
"slug_en"$get] 55.         ])->category()->row(); 56.     } 57.  58.     public function parentReset($id 0) 59.     { 60.         return DB::where('parent_id'$id)->column('parent_id'0)->update('category'); 61.     } 62.  63.     // Silme Tekil 64.     public function delete($id 0)
     C:\inetpub\vhosts\sayngrup.com\httpdocs\Internal\package-zerocore\StaticAccess.php
        

41.      * protected use class name
42.      43.      * @param string $method
44.      * @param array  $parameters
45.      46.      * @return mixed
47.      */
48.     protected static function useClassName($method$parameters)
49.     {
50. 
        return 
Singleton::class(INTERNAL_ACCESS . static::getClassName())->$method(...$parameters); 51.     } 52. }
     C:\inetpub\vhosts\sayngrup.com\httpdocs\Internal\package-zerocore\StaticAccess.php
        

15.      Magic call static
16.      17.      * @param string $method
18.      * @param array  $parameters
19.      20.      * @return mixed
21.      */
22.     public static function __callStatic($method$parameters)
23.     {
24. 
        return 
self::useClassName($method$parameters); 25.     } 26.  27.     /** 28.      * Magic call 29.      *  30.      * @param string $method 31.      * @param array  $parameters 32.      *  33.      * @return mixed 34.      */
     C:\inetpub\vhosts\sayngrup.com\httpdocs\Projects\Frontend\Controllers\Urunler.php
        

30. 
31.       if (Lang::get() == "tr") {
32.           $slug URI::getByName('category');
33.       } else {
34.           $slug URI::getByName('kategori');
35.       }
36. 
37.       $tam ML::select('category_url') . "/" $slug;
38. 
39. 
      
$sor CategoryModel::getBySlug($slug); 40.  41.       if (!$sor) { 42.           redirect(URL::site('404')); 43.       } 44.  45.       $alt = []; 46.       $catlist CategoryModel::getSubCategories($sor->catIDtrue); 47.  48.       $toplam_sayfa ProductModel::getByCategoryCount($sor->catID); 49. 
     C:\inetpub\vhosts\sayngrup.com\httpdocs\Internal\package-database\MySQLi\DB.php
        

145.         // @codeCoverageIgnoreEnd
146.         else
147.         {
148.             $this->connect = new MySQLi($host$user$pass$db$port);
149.         }
150.         restore_error_handler();
151.         
152.         if( $this->connect->connect_errno )
153.         {
154. 
            throw new 
ConnectionErrorException(NULL$this->connect->connect_error); // @codeCoverageIgnore 155.         } 156.  157.         mysqli_report(MYSQLI_REPORT_OFF); 158.  159.         if( ! empty($this->config['charset']  ) ) $this->query("SET NAMES '".$this->config['charset']."'");   160.         if( ! empty($this->config['charset']  ) ) $this->query('SET CHARACTER SET '.$this->config['charset']);   161.         if( ! empty($this->config['collation']) ) $this->query('SET COLLATION_CONNECTION = "'.$this->config['collation'].'"'); 162.     } 163.  164.     /**