当前位置:网站首页>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~
边栏推荐
- TransactionTemplate 事务编程式写法
- 一个简单的bash转powershell案例
- 著名网站msdn.itellyou.cn原理分析
- The latest MySql installation teaching, very detailed
- sql 添加 default 约束
- Gradle sync failed: Uninitialized object exists on backward branch 142
- 为什么bash中的read要配合while才能读取/dev/stdin的内容
- Pure shell implementation of text replacement
- SSH自动重连脚本
- VS2017连接MYSQL
猜你喜欢

Sqlite A列数据复制到B列

Principle analysis of famous website msdn.itellyou.cn

How MySQL - depots table?A look at will understand

Fragmented NFT (Fractional NFT)

【云原生】开源数据分析 SPL 轻松应对 T+0

MySQL高级学习笔记

feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r

MySQL错误-this is incompatible with sql_mode=only_full_group_by完美解决方案

Gradle sync failed: Uninitialized object exists on backward branch 142

MySQL高级SQL语句(二)
随机推荐
最新MySql安装教学,非常详细
powershell统计文件夹大小
[swagger close] The production environment closes the swagger method
MySQL分页查询的5种方法
Android software security and reverse analysis reading notes
Chinese garbled solution in UTF-8 environment in Powershell
浏览器查找js绑定或者监听的事件
Tencent Cloud Lightweight Server deletes all firewall rules
cocos create EditBox 输入文字被刘海屏遮挡修改
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
cocos2d-x-3.x 修改和纪录
flutter arr 依赖
MySql创建数据表
Pure shell implementation of text replacement
Why is the redis single-threaded also so fast?
360 hardening file path not exists.
sqlmap injection tutorial common commands
MYSQL事务与锁问题处理
Gradle sync failed: Uninitialized object exists on backward branch 142
5 methods of MySQL paging query