【数据包】Sql Server 数据库TDS协议抓包

microsoft sql server

SqlServer 版本更新和历史记录

安装包下载资源1

环境准备

2个ubuntu虚拟机

linux(ubuntu20.04)

服务器

默认用户名:sa

密码:在安装过程中自己设置的

默认安装sql server 服务器配置

vim.tiny /var/opt/mssql/mssql.conf

sql 复制代码
[sqlagent]
enabled = false

[EULA]
accepteula = Y

[network]
tcp.enabled = true
tcp.port = 1433
forceencryption = 0
encrypt = 0

客户端(sqlcmd工具集)

shell 复制代码
sudo apt-get install -y curl
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list)"
sudo apt-get update

# 开机自启:添加环境变量
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
source ~/.bashrc

常用操作

连接数据库

powershell 复制代码
sqlcmd -S 服务器主机ip -U sa(默认账户) -P 密码

create, insert,drop等sql语句之后,需要再输入 go才会执行

抓包

使用tcpdump抓包保存到文件

相关推荐
z06.16 分钟前
MySQL索引
数据库·mysql
考虑考虑22 分钟前
Posrgresql恢复.backup文件
数据库·后端·postgresql
云祺vinchin35 分钟前
中小企业备份软件选型从恢复需求到总体成本评估
数据库·数据备份·中小企业备份·容灾备份软件
Zenova EdgeOS1 小时前
Go 工业边缘错误处理实战:用 errors 构建可追溯错误链
开发语言·数据库·golang
KKKlucifer1 小时前
国内数据安全服务的产品智能化转型:大模型赋能下的技术能力重构分析
大数据·数据库·重构
字节跳动开源2 小时前
OpenViking 上线原生 3D 内容理解模型
数据库·开源
CCIE-Yasuo4 小时前
网络安全-学习数据库-Mysql-2
数据库·学习·mysql
这个DBA有点耶4 小时前
内核级AI与多模融合:AI数据库在海外场景的落地要点
数据库·人工智能·架构
涛思数据(TDengine)4 小时前
从工业本体到 AI 原生:TDengine 出席 2026 QCon 分享工业数据基础设施路径
大数据·数据库·人工智能·tdengine·工业
Jesse_EC4 小时前
换乘次数最少的路径 SQL 查询详解与实战经验——从 WITH RECURSIVE 到 pgRouting
数据库·postgresql