当前位置:网站首页>VS通过ODBC连接MYSQL(一)
VS通过ODBC连接MYSQL(一)
2022-07-31 05:15:00 【龙虾在剥我的壳】
我们将VS通过ODBC连接MYSQL,分为两步:第一步,ODBC连接MYSQL;第二步,VS连通ODBC。下一篇博客,我会通过代码 展示VS通过ODBC查询数据库的数据
一、ODBC连接MYSQL
1 进入控制面板—>系统与安全—>管理工具—>ODBC数据源(64位)
2 选择个人DSN或者系统DSN,点击添加ODBC驱动
驱动需要提前下载好,如果没有下载,官网:https://dev.mysql.com/downloads/connector/odbc/
选择版本是64位还是32位,下载下来进行安装即可

3Data Source Name—数据库名称
Descrtption----(描述 可写可不写)
User—root
Password—你的密码 一般为123456或root
Database----mysql
点击test
如果测试成功,说明ODBC已经连上mysql了
二、VS连通ODBC
1 打开VS2017—>工具—>连接到数据库—>更改—>Microsoft ODBC 数据源—>确定

2 使用用户名或系统数据源名称(D)—>(下拉箭头,找到你在个人DSN或者系统DSN中配的用户数据源名称)—>填写用户名和密码=—>测试连接

如果测试成功,说明VS已经通过ODBC连上mysql了
三、扩展
连接成功之后,在VS左上方有个服务器资源管理器创窗口,在这里可以对连接进行修改,关闭等操作
下一篇博客,我会通过代码展示VS通过ODBC查询数据库的数据
VS通过ODBC连接MYSQL(二)
欢迎大家交流探讨~
边栏推荐
- C语言 | 获取字符串里逗号间隔的内容
- mysql password modification method in Linux (pro-test available)
- 浏览器查找js绑定或者监听的事件
- Android software security and reverse analysis reading notes
- js中的break与continue退出
- MySQL高级语句(一)
- sqlmap injection tutorial common commands
- 【云原生】开源数据分析 SPL 轻松应对 T+0
- MySQL压缩包方式安装,傻瓜式教学
- What is the difference between NFT and digital collection?
猜你喜欢

unicloud 云开发记录

GUCCI, LV and other luxury giant universe how to layout yuan, other brands should keep up with?

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)](/img/26/1f3424c5998c52c6e10ced8529012a.png)
[uiautomation] Get WeChat friend list (stored in txt)

【云原生】SQL(及存储过程)跑得太慢怎么办?

最新MySql安装教学,非常详细

flutter arr dependencies

Linux modify MySQL database password

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

Why does read in bash need to cooperate with while to read the contents of /dev/stdin
随机推荐
js中的this指向与原型对象
[Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version
MySQL compressed package installation, fool teaching
纯shell实现文本替换
常见JVM面试题及答案整理
unicloud 发布后小程序提示连接本地调试服务失败,请检查客户端是否和主机在同一局域网下
js中的对象与函数的理解
sqlmap injection tutorial common commands
[Elastic-Job] Overview of Distributed Scheduling Tasks
一文速学-玩转MySQL获取时间、格式转换各类操作方法详解
feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
【uiautomation】微信好友列表获取(存储到txt中)
DeFi Token in the project management
MySQL-如何分库分表?一看就懂
Several solutions for mysql startup error The server quit without updating PID file
powershell统计文件夹大小
阿里云中mysql数据库被攻击了,最终数据找回来了
MySQL分页查询的5种方法
Using IIS10 to build an asp website in win11
【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】