当前位置:网站首页>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(二)
欢迎大家交流探讨~
边栏推荐
- Common JVM interview questions and answers
- podspec自动化升级脚本
- Yuan prospect and four track of the universe
- SSH automatic reconnection script
- mysql常用命令
- sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
- Why is the redis single-threaded also so fast?
- Android software security and reverse analysis reading notes
- 数据库 | SQL查询进阶语法
- quick-3.5 无法正常显示有混合纹理的csb文件
猜你喜欢

Notes on creating a new virtual machine in Hyper-V
![[windows]--- SQL Server 2008 super detailed installation tutorial](/img/b7/dc802c63b07edc4298b6e6b90d865c.png)
[windows]--- SQL Server 2008 super detailed installation tutorial

Linux修改MySQL数据库密码

通信原理——纠错编码 | 汉明码(海明码)手算详解

MySQL高级SQL语句(二)

MySQL compressed package installation, fool teaching

npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案

js中的对象与函数的理解

MySQL高级语句(一)

为什么bash中的read要配合while才能读取/dev/stdin的内容
随机推荐
对js的数组的理解
C language tutorial (3) - if and loop
MySql to create data tables
mac10.14中安装mysqldb
Linux修改MySQL数据库密码
flutter arr dependencies
Common JVM interview questions and answers
【云原生】微服务Nacos的简单介绍与使用
What is GameFi?
unicloud 发布后小程序提示连接本地调试服务失败,请检查客户端是否和主机在同一局域网下
Digital twins will be an important way to enter the "metaverse"
[swagger close] The production environment closes the swagger method
Fragmented NFT (Fractional NFT)
Sqlite A列数据复制到B列
quick-3.5 无法使用模拟器修改
cocoscreator 显示刘海内容
podspec 校验依赖出错问题 pod lib lint ,需要指定源
Gradle sync failed: Uninitialized object exists on backward branch 142
Pure shell implementation of text replacement
MySQL压缩包方式安装,傻瓜式教学