You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PyMySQL Users
Hello,
how I can use one pymysql connection object in two processes created by Python 3 multiprocessing module? At first the main process creates database connection object (global) and tries keep this connection alive, then child process is spawned and uses this connection object (does queries). But it seems that connection object is forked somewhere. Could you please help?
INADA Naoki
unread,
Nov 9, 2016, 5:47:09 AM11/9/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pymysq...@googlegroups.com
You can't.
Each process should create own connection.
> --
> You received this message because you are subscribed to the Google Groups
> "PyMySQL Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pymysql-user...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.