Link to database cannot be established: SQLSTATE[HY000] [1203] User eurotessuosc already has more than 'max_user_connections' active connections
at line 121 in file classes/db/DbPDO.php
116. public function connect()
117. {
118. try {
119. $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
120. } catch (PDOException $e) {
121. throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
122. }
123.
124. $this->link->exec('SET SESSION sql_mode = \'\'');
125.
126. return $this->link;
326. if (!defined('_PS_DEBUG_SQL_')) {
327. define('_PS_DEBUG_SQL_', false);
328. }
329.
330. if ($connect) {
331. $this->connect();
332. }
333. }
334.
335. /**
336. * Disable the use of the cache.
236. $class = Db::getClass();
237. self::$instance[$id_server] = new $class(
238. self::$_servers[$id_server]['server'],
239. self::$_servers[$id_server]['user'],
240. self::$_servers[$id_server]['password'],
241. self::$_servers[$id_server]['database']
242. );
243. }
244.
245. return self::$instance[$id_server];
246. }
Argument [0] **hidden_server** Argument [1] eurotessuosc Argument [2] **hidden_password** Argument [3] **hidden_database**
42. * @param bool $htmlOK Does data contain HTML code ? (optional)
43. * @return string Sanitized data
44. */
45. function pSQL($string, $htmlOK = false)
46. {
47. return Db::getInstance()->escape($string, $htmlOK);
48. }
49.
50. function bqSQL($string)
51. {
52. return str_replace('`', '\`', pSQL($string));
1354. private static function findShopByHost($host)
1355. {
1356. $sql = 'SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main
1357. FROM ' . _DB_PREFIX_ . 'shop_url su
1358. LEFT JOIN ' . _DB_PREFIX_ . 'shop s ON (s.id_shop = su.id_shop)
1359. WHERE (su.domain = \'' . pSQL($host) . '\' OR su.domain_ssl = \'' . pSQL($host) . '\')
1360. AND s.active = 1
1361. AND s.deleted = 0
1362. ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC';
1363.
1364. $result = Db::getInstance()->executeS($sql);
Argument [0] www.lamaisonenchiffon.com
350. $found_uri = '';
351. $is_main_uri = false;
352. $host = Tools::getHttpHost(false, false, true);
353. $request_uri = rawurldecode($_SERVER['REQUEST_URI']);
354.
355. $result = self::findShopByHost($host);
356.
357. // If could not find a matching, try with port
358. if (empty($result)) {
359. $host = Tools::getHttpHost(false, false, false);
360. $result = self::findShopByHost($host);
Argument [0] www.lamaisonenchiffon.com
112.
113. $context = Context::getContext();
114.
115. /* Initialize the current Shop */
116. try {
117. $context->shop = Shop::initialize();
118. } catch (PrestaShopException $e) {
119. $e->displayMessage();
120. }
121. define('_THEME_NAME_', $context->shop->theme->getName());
122. define('_PARENT_THEME_NAME_', $context->shop->theme->get('parent') ?: '');
36.
37. if (!defined('PS_ADMIN_DIR')) {
38. define('PS_ADMIN_DIR', _PS_ADMIN_DIR_);
39. }
40.
41. require _PS_ADMIN_DIR_.'/../config/config.inc.php';
42.
43. //small test to clear cache after upgrade
44. if (Configuration::get('PS_UPGRADE_CLEAR_CACHE')) {
45. header('Cache-Control: max-age=0, must-revalidate');
46. header('Expires: Mon, 06 Jun 1985 06:06:00 GMT+1');
Argument [0] /home/eurotessu/www/config/config.inc.php