当我试图访问我的prestahsop的BackOffice时,我得到一个ERROR 500,我只能在Debug模式下进入。
我的托管提供商告诉我,我应该关闭脚本上的连接,但我不知道该插入或修改到哪个脚本。
PrestaShopException]链接到数据库无法建立。SQLSTATE[HY000] [1226] 用户'u488328531_pcFsK'已经超过了'max_user_connections'资源(当前值:15),在文件classesdbDbPDO.php的第127行。
122. public function connect()
123. {
124. try {
125. $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
126. } catch (PDOException $e) {
127. throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
128. }
129.
130. $this->link->exec('SET SESSION sql_mode = \'\'');
131.
132. return $this->link;
DbPDOCore->connect - [line 330 - classes/db/Db.php]
DbCore->__construct - [line 241 - classes/db/Db.php] - [4 Arguments]
DbCore::getInstance - [line 47 - config/alias.php]
pSQL - [line 340 - classes/shop/Shop.php] - [1 Arguments]
ShopCore::initialize - [line 119 - config/config.inc.php]
require - [line 40 - admin/index.php] - [1 Arguments]enter code here
同样的问题在这里5年的工作与prestashop的流失
PrestaShopException]
无法建立与数据库的链接。SQLSTATE[08004] [1040] Too many connectionsat line 127 in file classesdbDbPDO.php.
DbPDOCore->连接 - [第330行 - classesdbDb.php] 。
DbCore->__construct - [line 241 - classes/db/Db.php] - [4 Arguments]
DbCore::getInstance - [line 47 - config/alias.php]
pSQL - [line 340 - classes/shop/Shop.php] - [1 Arguments]
ShopCore::initialize - [line 119 - config/config.inc.php]
require - [line 27 - index.php] - [1 Arguments]