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

前端 未结 6 1578
猫巷女王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:17

    If you get this max_user_connections message first optimize your database table.

    How to optimize database table and query:

    1. Index your table field in mysql
    2. In select query remove `*` and write which you need field
    3. Closed mysql_connection

提交回复
热议问题