MYSQLi error: User already has more than 'max_user_connections' active connections

前端 未结 6 1575
猫巷女王i
猫巷女王i 2020-11-28 13:34

I have this error below on a site I am running. I don\'t understand why is that as it works fine on my localhost. Is it something to do with the host? I am on an Unix server

6条回答
  •  野性不改
    2020-11-28 14:22

    For what its worth I wanted to include a situation I ran into where I received this message due to an incorrect placeholder:

          $sql_str = 'SELECT prod_id FROM ' . $this->table_name["product"] . ' WHERE prod_sku =:p_sku';
        $arr[':prod_sku'] = $s_sku;
    

    In addition I was doing a large number of queries. I suspect that the error compounded with the large number of queries caused this issue. When I fixed the query the connections issue when away.

提交回复
热议问题