Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import asyncio
- import aiomysql
- loop = asyncio.get_event_loop()
- async def test():
- con = aiomysql.connect(host = 'localhost', port = 3306, user = 'user', password = '123', db = 'test', loop = loop)
- con.close()
- loop.run_until_complete(test())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement