当前位置:网站首页>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~
边栏推荐
- Android software security and reverse analysis reading notes
- quick lua加密
- understand js operators
- qt:cannot open C:\Users\某某某\AppData\Local\Temp\main.obj.15576.16.jom for write
- Install mysqldb in mac10.14
- cocos2d-x 实现跨平台的目录遍历
- 2021美赛C题M奖思路
- C语言 | 获取字符串里逗号间隔的内容
- Flutter mixed development module dependencies
- Regular Expression Basics
猜你喜欢

Year-end summary - the years are quiet~

【windows】--- SQL Server 2008 超详细安装教程
Getting to know regular expressions

Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?

Chinese garbled solution in UTF-8 environment in Powershell

What is GameFi?

MySQL-如何分库分表?一看就懂

Linux modify MySQL database password

【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】

浏览器查找js绑定或者监听的事件
随机推荐
[Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version
On the side of Ali, tell me what are the application scenarios of message middleware you know?
[uiautomation] Get WeChat friend list (stored in txt)
function in js
js中的全局作用域与函数作用域
Understanding of js arrays
quick-3.6源码修改纪录
mysql启动报错The server quit without updating PID file几种解决办法
sql 添加 default 约束
The MySQL database in Alibaba Cloud was attacked, and the data was finally recovered
MySQL高级学习笔记
Year-end summary - the years are quiet~
使用ps | egrep时过滤排除掉egrep自身
Fragmented NFT (Fractional NFT)
Install mysqldb in mac10.14
360 hardening file path not exists.
Pure shell implementation of text replacement
Why does read in bash need to cooperate with while to read the contents of /dev/stdin
Gradle sync failed: Uninitialized object exists on backward branch 142
腾讯云GPU桌面服务器驱动安装