Zend Framework app not closing mysql connections properly

后端 未结 6 1249
Happy的楠姐
Happy的楠姐 2021-01-14 04:29

I\'m having a weird issue using Zend_Db\'s PDO adapter for managing my database connections. All of a sudden, I\'m constantly hitting the connection limit on my MySQL server

6条回答
  •  天命终不由人
    2021-01-14 05:04

    Don't think it's related to properly closing connection. http://dev.mysql.com/doc/refman/5.0/en/blocked-host.html says that it rather a problem with network layer.

    • If the DB is located on other machine check the network connection problems between (cables, switches, firewalls)
    • If the DB is on same machine try connecting using socket, not TCP.

提交回复
热议问题