当前位置:网站首页>VS connects to MYSQL through ODBC (1)
VS connects to MYSQL through ODBC (1)
2022-07-31 06:00:00 【Lobster is peeling my shell】
We connect VS to MYSQL through ODBC, which is divided into two steps: the first step, ODBC connects to MYSQL; the second step, VS connects to ODBC.In the next blog, I will show the data of VS querying the database through ODBC through code
1. ODBC connection to MYSQL
1 Go to Control Panel—>System and Security—>Administrative Tools—>ODBC Data Sources (64-bit)
2 Select personal DSN or system DSN, click to add ODBC driver
The driver needs to be downloaded in advance, if not, the official website:
Choose whether the version is 64-bit or32-bit, download and install it
3Data Source Name—database name
Descrtption----(Description can be written or not)
User—root
Password—Your password is generally 123456 or root
Database----mysql
Click test
If the test is successful, the ODBC has been connected to mysql
Second, VS connects to ODBC
1 Open VS2017—>Tools—>Connect to Database—>Change—>Microsoft ODBC Data Source—>OK
2 Use user name or system data source name (D) -> (drop-down arrow, find the user data source name you configured in personal DSN or system DSN)—>fill in username and password=—>test connection
If the test is successful, it means VS has connected to mysql through ODBC
Three. Extension
After the connection is successful, there is a server resource manager window at the top left of VS, where you can modify and close the connection.
In the next blog, I will show VS querying database data through ODBC through code
VS connects to MYSQL through ODBC (2)
Welcome to exchange and discuss~
边栏推荐
- Sqlite A列数据复制到B列
- 【云原生】开源数据分析 SPL 轻松应对 T+0
- sql add default constraint
- DeFi Token in the project management
- [Elastic-Job] Overview of Distributed Scheduling Tasks
- SSH automatic reconnection script
- 动态规划(一)| 斐波那契数列和归递
- flutter 混合开发 module 依赖
- Chinese garbled solution in UTF-8 environment in Powershell
- Filter out egrep itself when using ps | egrep
猜你喜欢
qt:cannot open C:\Users\某某某\AppData\Local\Temp\main.obj.15576.16.jom for write
浏览器查找js绑定或者监听的事件
Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
VS通过ODBC连接MYSQL(二)
【swagger关闭】生产环境关闭swagger方法
[Elastic-Job source code analysis] - job listener
npm WARN config global `--global`, `--local` are deprecated. Use `--location solution
Understanding of js arrays
【云原生】微服务Nacos的简单介绍与使用
数据库 | SQL增删改查基础语法
随机推荐
What is the difference between NFT and digital collection?
function in js
cocos2d-x 实现跨平台的目录遍历
[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
【云原生】开源数据分析 SPL 轻松应对 T+0
纯shell实现文本替换
Eternal blue bug reappears
Gradle sync failed: Uninitialized object exists on backward branch 142
this points to the problem
自定dialog 布局没有居中解决方案
Tencent Cloud GPU Desktop Server Driver Installation
cocos create EditBox 输入文字被刘海屏遮挡修改
浅谈对分布式模式下CAP的理解
cocos2d-x-3.2 不能混合颜色修改
Judgment of database in SQL injection
为什么bash中的read要配合while才能读取/dev/stdin的内容
Sqlite column A data is copied to column B
How MySQL - depots table?A look at will understand
VS2017连接MYSQL
2021美赛C题M奖思路