21
karuna
Re: Possible problem in databasefactory.php ??
  • 2004/4/23 12:58

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


Quote:

BoDGie wrote:
This error does infact mean there are currently too many connections to the database server. 100% the webhosts problem.


But my host does not limited the MySQL connections

22
msc_buff
Re: Possible problem in databasefactory.php ??
  • 2004/4/29 14:37

  • msc_buff

  • Just popping in

  • Posts: 6

  • Since: 2003/4/14


Ok...I got enough time to do a roll back to 2.0.5 and I now get this error:

This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.

Warning [PHP]: mysql_pconnect() [function.mysql-pconnect]: Link to server lost, unable to reconnect in file C:\Program Files\Apache Group\Apache2\htdocs\xoops\class\database\mysqldatabase.php line 72
Error [Xoops]: Unable to connect to database in file C:\Program Files\Apache Group\Apache2\htdocs\xoops\class\database\databasefactory.php line 34

I have even tried going back to MySQL 3.21 and the error is still there. So, by rolling back a version it is plain to see that something has changed...

I'm going to try to roll back even further...

23
msc_buff
Re: Possible problem in databasefactory.php ??
  • 2004/5/11 11:25

  • msc_buff

  • Just popping in

  • Posts: 6

  • Since: 2003/4/14


Ok, after more tinkering then I care to type out the problem turned out to be the persistent connections option in mainfile.php. I had it set to 1 (the default and the choice if you are 'not sure') but with the failure to connect I turned it off and the problem is gone. I'm not sure why XOOPS looses the connection (does MySQL have a timeout?) but it works fine with XOOPS_DB_PCONNECT=0 so I'm not bothering with it anymore...

24
karuna
Re: Possible problem in databasefactory.php ??
  • 2004/5/11 17:07

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


In my site the XOOPS_DB_PCONNECT is 0

but still got this problem and 502 Bad Gateway frequently

25
mattm
Re: Possible problem in databasefactory.php ??
  • 2004/7/11 17:13

  • mattm

  • Just popping in

  • Posts: 28

  • Since: 2004/3/8 2


All errors have mysteriously stopped with no intervention from myself.

Go figure

Login

Who's Online

177 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits