当前位置:网站首页>Record: pymysql is used in pycharm to connect to the database
Record: pymysql is used in pycharm to connect to the database
2022-07-03 18:48:00 【Randle】
problem
1. stay pycharm Connect to database , It's using pymysql, Version as follows , The problem is writing sql Statement cannot update the database 
Problem solving
1. After solving the time zone problem, it's simpler , Directly in pycharm Add mysql, The specific steps are as follows :
open database bar , Will appear on the right 
Click to open the corresponding interface 
Click on the plus sign , Add a database connection , Choose the database you need to add , What I use here is mysql
Then the following interface will appear , Just click download You can download the corresponding driver directly , We can see that Driver The version is 5.1, You can change , But not many choices are given , What I choose directly is MySQL And then download it directly


Fill in your own information in the corresponding column , And then click OK, If not sure , You can also click Test Connection To test 
After success, the little dolphin will have a bright spot 
Then write in PyCharm There will be no error in the code written in 
边栏推荐
- TypeScript 官网教程
- There are several levels of personal income tax
- 简述服务量化分析体系
- [combinatorics] exponential generating function (proving that the exponential generating function solves the arrangement of multiple sets)
- Suffix derivation based on query object fields
- Torch learning notes (7) -- take lenet as an example for dataload operation (detailed explanation + reserve knowledge supplement)
- How to disable the clear button of ie10 insert text box- How can I disable the clear button that IE10 inserts into textboxes?
- Common PostgreSQL commands
- Integrated easy to pay secondary domain name distribution system
- High concurrency Architecture - distributed search engine (ES)
猜你喜欢

There are several levels of personal income tax

2022-2028 global sepsis treatment drug industry research and trend analysis report

Unity webgl optimization

Recommend a simple browser tab

Zhengda futures news: soaring oil prices may continue to push up global inflation

235. 二叉搜索樹的最近公共祖先【lca模板 + 找路徑相同】

Help change the socket position of PCB part

Add control at the top of compose lazycolumn

2022-2028 global petroleum pipe joint industry research and trend analysis report

2022-2028 global plasmid DNA cdmo industry research and trend analysis report
随机推荐
leetcode:556. Next larger element III [simulation + change as little as possible]
Scrapy爬虫框架
leetcode:11. 盛最多水的容器【雙指針 + 貪心 + 去除最短板】
Day-27 database
Recommend a simple browser tab
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
MySQL duplicate check
Multifunctional web file manager filestash
G1 garbage collector of garbage collector
Opencv learning notes (continuously updated)
leetcode:556. 下一个更大元素 III【模拟 + 尽可能少变更】
Succession of flutter
After nohup NPM start &, close the shell window directly, and the process closes accordingly
HOW TO WRITE A DAILY LAB NOTE?
235. 二叉搜索树的最近公共祖先【lca模板 + 找路径相同】
What is SQL get connection
Raft log replication
Unity webgl optimization
2022-2028 global aircraft head up display (HUD) industry research and trend analysis report
Typescript configuration