Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
Quotes

" ... I want to tell you that your thyme product is functional and valuable beyond words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."

" ... Thanks for such a complete project, its making my job much easier. ..."

" ... I have now deployed 4 different calendars and our users love them ... "

" ... Easy to install and use and a great look/design. ..."

" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
Can't connect to MySQL server

 
Post new topic   Reply to topic     Forum Index -> General
View previous topic :: View next topic  
Author Message
Bill
Guest





PostPosted: Fri Mar 31, 2006 1:46 pm    Post subject: Can't connect to MySQL server Reply with quote

The Thyme calendar works, but occasionally I get this error:

-----------------------------------------------------------------
_ERROR_: class.mysql.php :: _connect() :: Can't connect to MySQL server on 'mysql3.brinkster.com' (10061)

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in C:\Sites\Single28\wjbushnell\webroot\lemolobeach\calendar\include\classes\sql\class.mysql.php on line 72

_ERROR_: class.mysql.php :: query() ::
select variable, setting from thyme_GlobalSettings
------------------------------------------------------------------

When I open the page, which is on www.lemolobeach.com, it pauses for 10-20 seconds and then flashes series of codes and then the above error is displayed. This error page continues with a long list of errors below a login screen.

Could it be that someone else is accessing the calendar. I used to get this error when I was building the page and then I started making sure I logged out each time and that seemed to solve the problem.
Back to top
esoft_ian



Joined: 12 Sep 2005
Posts: 5268

PostPosted: Fri Mar 31, 2006 2:17 pm    Post subject: Reply with quote

Hi Bill,

This means that every once in a while, PHP can not connect to the database server. I notice your site runs both PHP and ASP (which is fine). How does the rest of your site run? Does it also connect to the MySQL server?
Back to top
View user's profile Send private message Visit poster's website
Bill
Guest





PostPosted: Fri Mar 31, 2006 2:56 pm    Post subject: Reply with quote

Thyme is the only part of my site that uses the MySQL database, so it runs fine. Could having the calendar in an IFrame be causing the problem?
Back to top
esoft_ian



Joined: 12 Sep 2005
Posts: 5268

PostPosted: Fri Mar 31, 2006 3:00 pm    Post subject: Reply with quote

Hi Bill,

It may if your hosting provider sets a hard limit on the number of MySQL connections per process. Try this:

edit include/classes/sql/class.mysql.php

Search / Replace "mysql_connect" with "mysql_pconnect"
Back to top
View user's profile Send private message Visit poster's website
Bill
Guest





PostPosted: Fri Mar 31, 2006 3:10 pm    Post subject: Reply with quote

I don't find "mysql_connect" in that file. I see "_connect"
Back to top
esoft_ian



Joined: 12 Sep 2005
Posts: 5268

PostPosted: Fri Mar 31, 2006 3:18 pm    Post subject: Reply with quote

We'll try it the other way around.

Search / Replace "mysql_pconnect" with "mysql_connect"
Back to top
View user's profile Send private message Visit poster's website
Bill
Guest





PostPosted: Fri Mar 31, 2006 3:26 pm    Post subject: Reply with quote

Ian, I found it and the calendar seems be connecting faster. Guess I'll see what happens as family begin to use it more. Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.