必须额外安装对应数据库的驱动扩展,只装核心扩展无法连接数据库;官方驱动仅覆盖 MySQL、PostgreSQL、SQL Server、SQLite 等,其他数据库需另找社区驱动
vscode-sqltools
mtxrMIT活跃维护在 VS Code 里直接连 MySQL、Postgres、SQLite、MSSQL、Oracle 等数据库,写 SQL、看表结构和结果,不用切到别的客户端。
Database management for VSCode
在 VS Code 扩展视图搜索 @tag:sqltools-driver 并安装对应数据库驱动,核心扩展会随之安装README 未说明
VS Code 里的数据库管理扩展,连上库就能写 SQL、跑查询、看结果
在 VS Code 里直接连 MySQL、Postgres、SQLite、MSSQL、Oracle 等数据库,写 SQL、看表结构和结果,不用切到别的客户端。
核心能力
- 通过可插拔驱动架构连接多种数据库
- 内置 SQL 代码美化与格式化
- 查询执行、历史记录与书签管理
- 连接浏览器管理多个数据库连接
- 生成 INSERT 语句
容易踩的坑
- v0.28.6v0.28.6 - (Jul 6, 2026)最新正式版2026-07-06 · 2026-07-06 16:59 UTC
What's Changed
- Bump versions after release by @gjsjohnmurray in https://github.com/mtxr/vscode-sqltools/pull/1516
- Fix copying messages from log to clipboard by @gjsjohnmurray in https://github.com/mtxr/vscode-sqltools/pull/1445
- Bump tmp from 0.2.1 to 0.2.5 by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1517
- Fix SSH password authentication by @d-mato in https://github.com/mtxr/vscode-sqltools/pull/1519
- Bump
@sqltools/base-driverto 0.2.3 by @gjsjohnmurray in https://github.com/mtxr/vscode-sqltools/pull/1521 - Support password connections over SSH (mssql, mysql and pg drivers) by @gjsjohnmurray in https://github.com/mtxr/vscode-sqltools/pull/1523
- Bump tmp from 0.2.1 to 0.2.5 in /build-tools by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1522
- Bump tar-fs from 2.1.3 to 2.1.4 in /build-tools by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1528
- Bump tar-fs from 2.1.3 to 2.1.4 by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1530
- Make tunnel-ssh autoClose configurable by @d-mato in https://github.com/mtxr/vscode-sqltools/pull/1531
- Add Netezza driver to Community Drivers section by @maurice-v in https://github.com/mtxr/vscode-sqltools/pull/1537
- Bump js-yaml from 3.14.1 to 3.14.2 in /docs by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1538
- Bump jws from 3.2.2 to 3.2.3 by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1543
- Bump js-yaml from 3.14.1 to 3.14.2 by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1542
- Bump qs from 6.11.2 to 6.14.1 in /build-tools by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1546
- Bump js-yaml from 3.14.1 to 3.14.2 in /build-tools by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1547
- Add link to Aurora DSQL and fix Amazon Redshift name by @wcmjunior in https://github.com/mtxr/vscode-sqltools/pull/1551
- Update main docs page by @wcmjunior in https://github.com/mtxr/vscode-sqltools/pull/1552
- Bump diff from 5.1.0 to 5.2.2 in /docs by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1553
- Bump lodash from 4.17.21 to 4.17.23 by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1556
- Bump lodash from 4.17.21 to 4.17.23 in /docs by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1555
- Bump lodash from 4.17.21 to 4.17.23 in /build-tools by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1554
- Bump webpack from 5.94.0 to 5.104.1 in /build-tools by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1557
- Bump qs from 6.14.1 to 6.14.2 in /build-tools by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1558
- Bump minimatch from 3.1.2 to 3.1.3 in /docs by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1563
- Bump minimatch from 3.1.2 to 3.1.5 by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1565
- Bump minimatch from 3.1.3 to 3.1.5 in /docs by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1566
- Bump rollup from 2.79.2 to 2.80.0 in /docs by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1564
- Add the SQLTools Mimer SQL Driver to the list of available drivers by @fredrikalund in https://github.com/mtxr/vscode-sqltools/pull/1567
- Bump underscore from 1.10.2 to 1.13.8 by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1568
- Bump yaml from 1.10.2 to 1.10.3 in /docs by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1572
- Bump picomatch from 2.2.2 to 2.3.2 by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1574
- Bump picomatch from 2.2.2 to 2.3.2 in /build-tools by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1575
- Bump lodash from 4.17.23 to 4.18.1 by @dependabot[bot] in https://github.com/mtxr/vscode-sqltools/pull/1578
- Bump loda
- mssql-v0.4.102025-09-29 · 2025-09-29 01:02 UTC
查看更新说明
What's Changed
- Microsoft guidelines update. Remove wording Azure.
Full Changelog: https://github.com/mtxr/vscode-sqltools/compare/mssql-v0.4.9...mssql-v0.4.10
- mssql-v0.4.92025-09-12 · 2025-09-12 02:18 UTC
查看更新说明
What's Changed
What Changed:
- Updated all references to comply with Microsoft trademark guidelines
- Extension title no longer uses "Microsoft" trademark
- Documentation updated to follow proper trademark usage
- Marketplace listing revised for compliance
Impact:
- No functionality changes - all features work exactly the same
- Extension ID remains unchanged:
mtxr.sqltools-driver-mssql - Existing installations will update automatically
Why This Change: Required compliance with Microsoft Trademark & Brand Guidelines following official notice.
Verification:
Note: This is purely a naming/branding change. Your SQL Server connections and workflows remain unaffected.
- pg-v0.5.7PostgreSQL driver v0.5.7 - (Sep 11, 2025)2025-09-11 · 2025-09-11 08:45 UTC
查看更新说明
Support password connections over SSH
- mysql-v0.6.6MySQL driver v0.6.6 - (Sep 11, 2025)2025-09-11 · 2025-09-11 08:40 UTC
查看更新说明
Support password connections over SSH
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Welcome to Database Management done right. SQLTools provides connections to many of the most commonly used databases, making it easier to work with your data. With this tool, developers will save (a lot of) time, increase productivity and feel like a database hero ✌️
SQLTools is an open-source project maintained by Matheus Teixeira and George James Software, alongside contributions from our brilliant community of users.
If you like using this tool please leave us a review.
Features
Connects to MySQL, PostgreSQL, SQL Server and many more...
- Beautifier and formatter for SQL code
- Query runner, history and bookmarks
- Connection explorer
- Generator for INSERT queries
- Pluggable driver architecture
Find out more in the documentation here.
Getting Started
SQLTools is a set of VS Code extensions that connect to, query, and display results from a SQL database manager. (Supported databases are listed below.)
The installation process is straightforward:
- Open VS Code
- Click the Extensions view (in the left bar), then search for
@tag:sqltools-driver. This lists all the drivers available for SQLTools. - Install the driver for your database. This also installs the core SQLTools extension.
- Click the SQLTools icon (in the left bar)
- Create a connection to your database. To do this, hover over CONNECTIONS in the SQLTools pane. Click the "Add New Connection" icon and choose the driver and enter the connection parameters.
You can then open and query it from within VS Code.
Supported Databases
To use SQLTools you will also need to install the appropriate driver extension for your database.
If the driver you want is not available, you can use our handy new drivers guide to write it yourself (and help our community in the process) or submit feedback via GitHub.
If you need a driver sooner, get in touch with the maintainers directly – we might be able to help you out.
Psst… we’re always on the lookout for maintainers for the official drivers, so let us know if this is something you’re interested in!
Official Drivers
| Driver | Marketplace | Package | |
|---|---|---|---|
| CockroachDB | Link | packages/driver.pg | |
| MariaDB | Link | packages/driver.mysql | |
| SQL Server | Link | packages/driver.mssql | |
| MySQL | Link | packages/driver.mysql | |
| TiDB | Link | packages/driver.mysql | |
| PostgreSQL | Link | packages/driver.pg | |
| SQLite | Link | packages/driver.sqlite |
Community Drivers:
Related Tools
| Name | Download | Repository | |
|---|---|---|---|
![]() | Markdown SQL Pro Tools | Sign up | RandomFractals/pro-data-tools#markdown-sql-pro-tools |
![]() | PRQL Pro Tools | Sign up | RandomFractals/pro-data-tools#prql-pro-tools |
Contributing
We are grateful to our contributors for helping with this project ❤️ If you would like to join them you’ll find everything you need to know about contributing here.
Changelog
See the changelog here.
Feedback
Our aim is to build a tool that is genuinely helpful for developers. Therefore we welcome any feedback or additional feature requests – please submit them through the GitHub Issue system.
If you need help sooner, get in touch with the maintainers directly – we might be able to help you out.
About George James Software
George James Software has been providing innovative software solutions for over 35 years. We pride ourselves on the quality and maintainability of our code and we have built a number of tools to help developers achieve the same with their work. These are available as VS Code extensions here.
We also help other developers to build their own extensions. If there is a tool you need building please get in touch with us at [email protected].





