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

小米手机短信定位服务激活失败
![[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]](/img/3d/1b65fb33bfbf22da8243df1ab33ed5.png)
[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]

flutter arr dependencies

this指向问题

Android软件安全与逆向分析阅读笔记

npm WARN config global `--global`, `--local` are deprecated. Use `--location solution

UiBot存在已打开的MicrosoftEdge浏览器,无法执行安装

浏览器查找js绑定或者监听的事件

Chinese garbled solution in UTF-8 environment in Powershell

flutter arr 依赖
随机推荐
腾讯云GPU桌面服务器驱动安装
Markdown help documentation
DeFi Token in the project management
A simple bash to powershell case
Linux modify MySQL database password
Several forms of Attribute Changer
5 methods of MySQL paging query
powershell统计文件夹大小
The MySQL database in Alibaba Cloud was attacked, and the data was finally recovered
【云原生】SQL(及存储过程)跑得太慢怎么办?
UiBot has an open Microsoft Edge browser and cannot perform the installation
VS通过ODBC连接MYSQL(二)
【swagger关闭】生产环境关闭swagger方法
qt:cannot open C:\Users\某某某\AppData\Local\Temp\main.obj.15576.16.jom for write
ERROR Error: No module factory availabl at Object.PROJECT_CONFIG_JSON_NOT_VALID_OR_NOT_EXIST ‘Error
cocos2d-x-3.x 修改和纪录
js中流程控制语句
工件SSMwar exploded 部署工件时出错。请参阅服务器日志了解详细信息
MySql创建数据表
UiBot存在已打开的MicrosoftEdge浏览器,无法执行安装