当前位置:网站首页>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 
边栏推荐
- flask 生成swagger文档
- Torch learning notes (3) -- univariate linear regression model (self training)
- 变化是永恒的主题
- ES7 - Optimization of promise
- What is SQL get connection
- 2022-2028 global copper foil (thickness 12 μ M) industry research and trend analysis report
- Which do MySQL and Oracle learn?
- Raft log replication
- Real time split network (continuous update)
- Zero length array
猜你喜欢
![235. The nearest common ancestor of the binary search tree [LCA template + same search path]](/img/f5/f2d244e7f19e9ddeebf070a1d06dce.png)
235. The nearest common ancestor of the binary search tree [LCA template + same search path]
![leetcode:11. Container with the most water [double pointer + greed + remove the shortest board]](/img/d4/cbbaec40119be6cb5594899e348261.png)
leetcode:11. Container with the most water [double pointer + greed + remove the shortest board]

Kratos微服务框架下实现CQRS架构模式

235. 二叉搜索树的最近公共祖先【lca模板 + 找路径相同】
![[combinatorics] dislocation problem (recursive formula | general term formula | derivation process)*](/img/e8/67961bf8a589869bde2a0aa3e09605.jpg)
[combinatorics] dislocation problem (recursive formula | general term formula | derivation process)*

Multifunctional web file manager filestash
Know what it is, and know why, JS object creation and inheritance [summary and sorting]

2022-2028 global aircraft head up display (HUD) industry research and trend analysis report

The online customer service system developed by PHP is fully open source without encryption, and supports wechat customer service docking

Pytorch introduction to deep learning practice notes 13- advanced chapter of cyclic neural network - Classification
随机推荐
Torch learning notes (3) -- univariate linear regression model (self training)
2022-2028 global petroleum pipe joint industry research and trend analysis report
Transformer T5 model read slowly
Real time split network (continuous update)
22.2.14 -- station B login with code -for circular list form - 'no attribute' - 'needs to be in path selenium screenshot deviation -crop clipping error -bytesio(), etc
Torch learning notes (2) -- 11 common operation modes of tensor
达梦数据库的物理备份和还原简解
Processing of user input parameters in shell script
After the festival, a large number of people change careers. Is it still time to be 30? Listen to the experience of the past people
SQL: special update operation
论文阅读 GloDyNE Global Topology Preserving Dynamic Network Embedding
leetcode:556. 下一个更大元素 III【模拟 + 尽可能少变更】
189. Rotation array
Su embedded training - Day10
2022-2028 global scar care product industry research and trend analysis report
Gao Qing, Beijing University of Aeronautics and Astronautics: CIM is a natural quantum computing platform for graph data processing
High concurrency Architecture - distributed search engine (ES)
Hard disk monitoring and analysis tool: smartctl
多媒体NFT聚合平台OKALEIDO即将上线,全新的NFT时代或将来临
Kratos微服务框架下实现CQRS架构模式