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
未讀,
2016年11月9日 清晨5:47:092016/11/9
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
登入以檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者: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.