On Oct 19, 9:22 am, raymond ramone <[email protected]> wrote: > Hi guys, > > I am using a simple daemon gem and now whenever I use it with > sequel it always > gives me the error "MySQL server has gone away" Any idea why and what > could be the > solution?
Just a guess that the daemon gem forks and you are connecting before the fork. That's not kosher with Sequel, you have to disconnect (DB.disconnect) before forking. Otherwise, when one process exits, it'll disconnect the database connection socket used, and the other process will give you an error like the one you received the next time you try to run a query. Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
