multithreading - concurrent access to several mysql tables -


i using python. want access several mysql tables in 1 database using threads.

class dbthread(threading.thread):      def __init__(self):         thread.__init__(self)      def __init__(self,i,db):          self.t =         self.db=db         thread.__init__(self)      def run(self):          time.sleep(0)         mpo = self.db.get_place(self.t)  ###################################################################  in range(0,3):          dbthread = dbthread(self,i,self.db)         dbthread.start()         threads.append(dbthread)          dbthread in threads:             dbthread.join()        

but got error message

error 2013: lost connection mysql server during queryerror 2013: lost connection mysql server during queryerror 2006: mysql server has gone away


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -