当前位置:网站首页>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~
边栏推荐
- The server time zone value ‘й‘ is unrecognized or represents more than one time zone
- [Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
- cocos2d-x-3.2 不能混合颜色修改
- configure:error no SDL library found
- 腾讯云GPU桌面服务器驱动安装
- cocos2d-x-3.2图片灰化效果
- What is the difference between NFT and digital collection?
- 【uiautomation】微信好友列表获取(存储到txt中)
- powershell statistics folder size
- Linux modify MySQL database password
猜你喜欢
MySQL压缩包方式安装,傻瓜式教学
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
通信原理——纠错编码 | 汉明码(海明码)手算详解
最新MySql安装教学,非常详细
NFTs: The Heart of Digital Ownership
小米手机短信定位服务激活失败
Sqlite column A data is copied to column B
What is GameFi?
mysql password modification method in Linux (pro-test available)
[uiautomation] Get WeChat friend list (stored in txt)
随机推荐
cocos2d-x 实现跨平台的目录遍历
"limit" query in Oracle database
数据库 | SQL查询进阶语法
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
MySQL错误-this is incompatible with sql_mode=only_full_group_by完美解决方案
npm WARN config global `--global`, `--local` are deprecated. Use `--location solution
Gradle sync failed: Uninitialized object exists on backward branch 142
[Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version
360 hardening file path not exists.
[JVM Loading]---Class Loading Mechanism
MySQL分页查询的5种方法
UiBot has an open Microsoft Edge browser and cannot perform the installation
MySql to create data tables
NFTs: The Heart of Digital Ownership
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
The feign call fails, JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
网页截图与反向代理
quick-3.5 ActionTimeline的setLastFrameCallFunc调用会崩溃问题
sql add default constraint
Markdown 帮助文档