Menu

How DB_Sql close a connection?

Help
Anonymous
2002-05-02
2002-05-02
  • Anonymous

    Anonymous - 2002-05-02

    Someone could explain me how the class DB_Sql closes a connection?

    It may explain me why I am getting many Errors like this:

    MySQL Error: 2013 (Lost connection to MySQL server during query)

    Thks

     
    • Richard Archer

      Richard Archer - 2002-05-02

      DB_Sql never closes a database connection. The connection is torn down when the script exits (subject to a pconnect causing the apache process to hold it open).

      Turn on logging in your DB and check the logs for errors. Or just trace through the connection which failed.

      Or subscribe to the mailing list and ask your Q there. Lots more readers of the list than this forum. Include sample code and excerpt from Apache and DB error logs.

      ...R.

       

Log in to post a comment.