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

NFTs: The Heart of Digital Ownership

Fragmented NFT (Fractional NFT)

MySQL高级语句(一)

Year-end summary - the years are quiet~

Why does read in bash need to cooperate with while to read the contents of /dev/stdin

Notes on creating a new virtual machine in Hyper-V

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

Sqlite column A data is copied to column B

Gradle sync failed: Uninitialized object exists on backward branch 142
![[JVM Loading]---Class Loading Mechanism](/img/b6/d1754cb6699d18602ca9a463571c0c.png)
[JVM Loading]---Class Loading Mechanism
随机推荐
mysql common commands
sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
The server time zone value ‘й‘ is unrecognized or represents more than one time zone
Common JVM interview questions and answers
quick lua加密
工件SSMwar exploded 部署工件时出错。请参阅服务器日志了解详细信息
[Cloud native] Simple introduction and use of microservice Nacos
MySQL高级学习笔记
sqlmap injection tutorial common commands
kotlin 插件更新到1.3.21
sql 添加 default 约束
cocos2d-x-3.x 修改和纪录
Chinese garbled solution in UTF-8 environment in Powershell
configure:error no SDL library found
理解js运算符
SSH自动重连脚本
SSH automatic reconnection script
js中流程控制语句
js中的全局作用域与函数作用域
Android software security and reverse analysis reading notes