I have a function which when called triggers a thread. The function
returns after starting the thread.
Thread should access database update few tables and then should end. But
I am getting an error when Thread tries to access the database:
Mysql::Error: Lost connection to MySQL server during query: BEGINe[0m
Do i have to open up a new database connection for threads? If so how do
I do it?