当前位置:网站首页>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(二)
欢迎大家交流探讨~
边栏推荐
- this points to the problem
- 【云原生】微服务Nacos的简单介绍与使用
- 通信原理——纠错编码 | 汉明码(海明码)手算详解
- Xiaobai learns reptiles - introduction to reptiles
- Fragmented NFT (Fractional NFT)
- Install mysqldb in mac10.14
- Digital twins will be an important way to enter the "metaverse"
- SSH自动重连脚本
- 5 methods of MySQL paging query
- mysql password modification method in Linux (pro-test available)
猜你喜欢

MySQL错误-this is incompatible with sql_mode=only_full_group_by完美解决方案

著名网站msdn.itellyou.cn原理分析

常见JVM面试题及答案整理

What is GameFi?

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

What is the difference between NFT and digital collection?

Linux modify MySQL database password

Year-end summary - the years are quiet~

The feign call fails, JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
![[Elastic-Job source code analysis] - job listener](/img/99/5e047b1aa83aad7d7f17b4eec606e6.png)
[Elastic-Job source code analysis] - job listener
随机推荐
powershell statistics folder size
js中流程控制语句
计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)
Eternal blue bug reappears
Understanding of js arrays
cocoscreator 显示刘海内容
[Cloud native] Open source data analysis SPL easily copes with T+0
kotlin 插件更新到1.3.21
Why does read in bash need to cooperate with while to read the contents of /dev/stdin
阿里云中mysql数据库被攻击了,最终数据找回来了
flutter arr dependencies
微信小程序源码获取与反编译方式
quick-3.5 无法使用模拟器修改
Flow control statement in js
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
Detailed explanation of pointers in C language
The feign call fails, JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
mysql启动报错The server quit without updating PID file几种解决办法
A simple bash to powershell case
为什么bash中的read要配合while才能读取/dev/stdin的内容