当前位置:网站首页>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~
边栏推荐
猜你喜欢

【云原生】微服务Nacos的简单介绍与使用

腾讯云GPU桌面服务器驱动安装

Artifact SSMwar exploded Error deploying artifact.See server log for details

What is GameFi?

为什么bash中的read要配合while才能读取/dev/stdin的内容

工件SSMwar exploded 部署工件时出错。请参阅服务器日志了解详细信息

动态规划(一)| 斐波那契数列和归递

Digital twins will be an important way to enter the "metaverse"

The feign call fails, JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r

The server time zone value ‘й‘ is unrecognized or represents more than one time zone
随机推荐
feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
【swagger关闭】生产环境关闭swagger方法
The latest MySql installation teaching, very detailed
quick lua加密
[windows]--- SQL Server 2008 super detailed installation tutorial
Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
理解js运算符
Getting to know regular expressions
unicloud 发布后小程序提示连接本地调试服务失败,请检查客户端是否和主机在同一局域网下
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
ERROR Error: No module factory availabl at Object.PROJECT_CONFIG_JSON_NOT_VALID_OR_NOT_EXIST ‘Error
MySQL高级学习笔记
cocos2d-x-3.2创建项目方法
cocoscreator 显示刘海内容
The server time zone value ‘й‘ is unrecognized or represents more than one time zone
Build vulhub vulnerability shooting range on kali
Hyper-V新建虚拟机注意事项
MySql to create data tables
understand js operators
NFTs: The Heart of Digital Ownership