aiomysql 数据库配置
时间: 2023-10-12 16:05:54 浏览: 88
aiomysql是一个异步连接库,用于连接MySQL数据库。它的基本语法和pymysql相似。你可以按照以下步骤配置aiomysql数据库:
1. 首先,导入aiomysql库。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [怎么连接数据库-Python异步编程·aiohttp+aiomysql连接mysql数据库](https://blog.csdn.net/weixin_35934603/article/details/114798155)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Python连接数据库](https://blog.csdn.net/BlackEnn/article/details/125694522)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文