Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import asyncio
  2. import aiomysql
  3.  
  4. loop = asyncio.get_event_loop()
  5.  
  6. async def test():
  7. con = aiomysql.connect(host = 'localhost', port = 3306, user = 'user', password = '123', db = 'test', loop = loop)
  8.  
  9. con.close()
  10.  
  11. loop.run_until_complete(test())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement