Chat2DB/README_CN.md

157 lines
8.3 KiB
Markdown
Raw Permalink Normal View History

2023-06-20 22:28:55 +08:00
2024-11-07 21:37:45 +08:00
<a><img src="https://github.com/user-attachments/assets/cdb1f367-bd8e-47af-be31-d8269a3c6a31" width="20%"/></a>
2024-09-17 17:44:09 +08:00
<a><img src="https://github.com/chat2db/Chat2DB/assets/22975773/81d13eff-c615-49f5-aee3-4107089593e0" width="20%"/></a>
2024-09-17 17:42:09 +08:00
2024-09-17 17:43:47 +08:00
加群前请先 Star 和 Fork谢谢~关注微信公众号可加入微信、钉钉、QQ 群一起讨论,并可以获取 Chat2DB 最新动态和更新。
2023-06-20 22:28:55 +08:00
2024-04-09 00:05:48 +08:00
# Chat2DB
2024-05-19 20:10:33 +08:00
**中文** | [English](README.md)· [更新日志](CHANGELOG.md) · [文档](https://docs.chat2db-ai.com/) · [报告问题](https://github.com/chat2db/Chat2DB/issues) · [提交PR](https://github.com/chat2db/Chat2DB/pulls)
2023-06-22 11:26:48 +08:00
[![License](https://img.shields.io/github/license/alibaba/fastjson2?color=4D7A97&logo=apache)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![Java support](https://img.shields.io/badge/Java-17+-green?logo=java&logoColor=white)](https://openjdk.java.net/)
2023-07-02 19:49:46 +08:00
[![GitHub release](https://img.shields.io/github/release/chat2db/Chat2DB)](https://github.com/chat2db/Chat2DB/releases)
[![GitHub Stars](https://img.shields.io/github/stars/chat2db/Chat2DB)](https://github.com/chat2db/Chat2DB/stargazers)
[![GitHub Forks](https://img.shields.io/github/forks/chat2db/Chat2DB)](https://github.com/chat2db/Chat2DB/fork)
[![GitHub Contributors](https://img.shields.io/github/contributors/chat2db/Chat2DB)](https://github.com/chat2db/Chat2DB/graphs/contributors)
2023-06-20 22:28:55 +08:00
</div>
2023-08-17 11:39:56 +08:00
<div align="center">
2024-04-09 00:05:48 +08:00
<p align="center"><b>分享Chat2DB仓库</b></p>
<p align="center">
<a href="https://twitter.com/intent/tweet?text=Chat2DB-An%20intelligent%20and%20versatile%20general-purpose%20SQL%20client%20and%20reporting%20tool%20for%20databases%20which%20integrates%20ChatGPT%20capabilities.&url=https://github.com/chat2db/Chat2DB&hashtags=ChatGPT,AGI,SQL%20Client,Reporting%20tool" target="blank" > <img src="https://img.shields.io/twitter/follow/_Chat2DB?label=Share on Twitter&style=social" alt=""/> </a>
<a href="https://t.me/share/url?text=Chat2DB-An%20intelligent%20and%20versatile%20general-purpose%20SQL%20client%20and%20reporting%20tool%20for%20databases%20which%20integrates%20ChatGPT%20capabilities.&url=https://github.com/chat2db/Chat2DB" target="_blank"><img src="https://img.shields.io/twitter/url?label=Telegram&logo=Telegram&style=social&url=https://github.com/chat2db/Chat2DB" alt="Share on Telegram"/></a>
<a href="https://api.whatsapp.com/send?text=Chat2DB-An%20intelligent%20and%20versatile%20general-purpose%20SQL%20client%20and%20reporting%20tool%20for%20databases%20which%20integrates%20ChatGPT%20capabilities.%20https://github.com/chat2db/Chat2DB"><img src="https://img.shields.io/twitter/url?label=whatsapp&logo=whatsapp&style=social&url=https://github.com/chat2db/Chat2DB" /></a>
<a href="https://www.reddit.com/submit?url=https://github.com/chat2db/Chat2DB&title=Chat2DB-An%20intelligent%20and%20versatile%20general-purpose%20SQL%20client%20and%20reporting%20tool%20for%20databases%20which%20integrates%20ChatGPT%20capabilities." target="blank"><img src="https://img.shields.io/twitter/url?label=Reddit&logo=Reddit&style=social&url=https://github.com/chat2db/Chat2DB" alt="Share on Reddit"/></a>
<a href="mailto:?subject=Check%20this%20GitHub%20repository%20out.&body=Chat2DB-An%20intelligent%20and%20versatile%20general-purpose%20SQL%20client%20and%20reporting%20tool%20for%20databases%20which%20integrates%20ChatGPT%20capabilities.%3A%0Ahttps://github.com/chat2db/Chat2DB" target="_blank"><img src="https://img.shields.io/twitter/url?label=Gmail&logo=Gmail&style=social&url=https://github.com/chat2db/Chat2DB"/></a>
</p>
<div style="display: flex; align-items: center;">
如果你觉得Chat2DB有帮助请点击右上角的⭐Star<a style="display: flex; align-items: center;margin:0px 6px" target="_blank" href='https://github.com/chat2db/Chat2db'><img src="https://img.shields.io/github/stars/chat2db/Chat2DB.svg?style=flat-square&label=Stars&logo=github" alt="github star"/></a>和Fork你的支持是Chat2DB变得更好的最大动力
2023-08-17 11:43:20 +08:00
</div>
2024-04-09 00:05:48 +08:00
</div>
2023-08-17 11:43:20 +08:00
2024-08-20 21:04:59 +08:00
## ⏬ 下载和安装Chat2DB(Pro)
- 从[官网](https://chat2db-ai.com/download)下载安装包
- 双击安装包进行安装
2024-04-09 00:05:48 +08:00
# 最近更新
2023-08-17 11:37:05 +08:00
2024-08-20 21:04:59 +08:00
### 期待已久的Chat2DB Pro版本终于来了新增了以下几个核心亮点。
#### AI驱动的智能SQL开发
2024-04-09 00:05:48 +08:00
<a href="https://chat2db-ai.com/" target="_blank">
<img src="https://chat2db-cdn.oss-us-west-1.aliyuncs.com/website/img/9664f2fd-250b-478e-a2a1-4b96464ba718.gif" alt="Chat2DB" />
</a>
<a href="https://chat2db-ai.com/" target="_blank">
<img src="https://chat2db-cdn.oss-us-west-1.aliyuncs.com/website/img/fa9a01a4-7845-4893-93cc-c49a11f62569.gif" alt="Chat2DB" />
</a>
<a href="https://chat2db-ai.com/" target="_blank">
<img src="https://chat2db-cdn.oss-us-west-1.aliyuncs.com/website/img/47a61ae7-2e21-45e7-a41e-e2559f51919d.gif" alt="Chat2DB" />
</a>
2023-07-05 22:48:04 +08:00
2024-08-20 21:04:59 +08:00
#### AI驱动的智能报告
2024-04-09 00:05:48 +08:00
<a href="https://chat2db-ai.com/" target="_blank">
<img src="https://chat2db-cdn.oss-us-west-1.aliyuncs.com/website/img/d070ca11-8bdd-4ff4-a435-ecfc623103cb.gif" alt="Chat2DB" />
</a>
2023-07-02 10:44:08 +08:00
2024-08-20 21:04:59 +08:00
#### AI驱动的数据探索
2024-04-09 00:05:48 +08:00
<a href="https://chat2db-ai.com/" target="_blank">
<img src="https://chat2db-cdn.oss-us-west-1.aliyuncs.com/website/img/WechatIMG5138.jpg" alt="Chat2DB" />
</a>
2023-07-05 22:48:04 +08:00
2024-08-20 21:04:59 +08:00
### 我们还开源了我们的第一个GLM[Chat2DB-SQL-7B](https://github.com/chat2db/Chat2DB-GLM)。你可以从下面的链接了解更多详情。
2023-07-24 15:01:21 +08:00
2024-04-09 00:05:48 +08:00
- GitHub: [Chat2DB-SQL-7B](https://github.com/chat2db/Chat2DB-GLM)
- huggingface🤗[Chat2DB-SQL-7B](https://huggingface.co/Chat2DB/Chat2DB-SQL-7B)
- modelscope[Chat2DB-SQL-7B](https://modelscope.cn/models/Chat2DB/Chat2DB-SQL-7B/summary)
2023-07-24 15:01:21 +08:00
2024-08-20 21:04:59 +08:00
### 在Chat2DB上即成InternLM模型
2024-05-13 19:35:56 +08:00
感谢InternLM对本项目的大力支持在本项目中的自定义模型中可以集成InternLM的多个模型权重具体请参考[chat2db-internlm-deploy](https://github.com/chat2db/chat2db-internlm-deploy)
2023-06-20 23:09:45 +08:00
2024-08-20 21:04:59 +08:00
## 支持的数据库
2024-04-09 00:05:48 +08:00
Chat2DB Pro支持以下所有数据库包括备受期待的Redis功能。
2023-07-24 15:01:21 +08:00
- MySQL
- PostgreSQL
- H2
- Oracle
- SQLServer
2023-10-19 13:26:50 +08:00
- SQLite
2023-07-24 15:01:21 +08:00
- MariaDB
2024-04-09 00:05:48 +08:00
- ClickHouse
2023-07-24 15:01:21 +08:00
- DM
- Presto
- DB2
- OceanBase
- Hive
- KingBase
2024-04-09 00:05:48 +08:00
- MongoDB
- Redis
- Snowflake
2023-07-24 15:01:21 +08:00
2023-06-20 22:28:55 +08:00
2024-08-20 21:04:59 +08:00
## 使用Chat2DB
2024-04-09 00:05:48 +08:00
参考[快速开始指南](https://docs.chat2db-ai.com/)开始使用Chat2DB。
2023-06-20 23:09:45 +08:00
2023-07-05 22:48:04 +08:00
## 常见问题
2023-06-20 23:09:45 +08:00
### 1、无法获取数据源驱动:getJDBCDriver error: null
问题原因:无法联网导致下载数据库驱动包失败。
解决办法:手动下载相关驱动放入到 ~/.chat2db/jdbc-lib 目录下
2023-07-02 19:49:46 +08:00
下载链接 参考:<a href="https://github.com/chat2db/Chat2DB/blob/main/chat2db-server/chat2db-server-start/src/main/resources/application.yml">Application jdbc-jar-downLoad-urls</a>
2023-07-05 22:48:04 +08:00
2024-04-06 19:04:38 +08:00
- https://cdn.chat2db-ai.com/lib/mysql-connector-java-8.0.30.jar
- https://cdn.chat2db-ai.com/lib/mysql-connector-java-5.1.47.jar
- https://cdn.chat2db-ai.com/lib/clickhouse-jdbc-0.3.2-patch8-http.jar
- https://cdn.chat2db-ai.com/lib/mariadb-java-client-3.0.8.jar
- https://cdn.chat2db-ai.com/lib/mssql-jdbc-11.2.1.jre17.jar
- https://cdn.chat2db-ai.com/lib/oceanbase-client-2.4.2.jar
- https://cdn.chat2db-ai.com/lib/postgresql-42.5.1.jar
- https://cdn.chat2db-ai.com/lib/sqlite-jdbc-3.39.3.0.jar
- https://cdn.chat2db-ai.com/lib/ojdbc11.jar
2023-06-20 23:09:45 +08:00
## Stargazers
2023-07-05 22:48:04 +08:00
2023-07-02 19:49:46 +08:00
[![Stargazers repo roster for @chat2db/Chat2DB](https://reporoster.com/stars/chat2db/Chat2DB)](https://github.com/chat2db/Chat2DB/stargazers)
2023-06-20 23:09:45 +08:00
## Forkers
2023-07-05 22:48:04 +08:00
2023-07-02 19:49:46 +08:00
[![Forkers repo roster for @chat2db/Chat2DB](https://reporoster.com/forks/chat2db/Chat2DB)](https://github.com/chat2db/Chat2DB/network/members)
2023-06-20 22:28:55 +08:00
2024-04-09 00:05:48 +08:00
## ☎️ 加入我们
2023-06-20 22:28:55 +08:00
## ❤️ 致谢
2023-07-05 22:48:04 +08:00
2024-03-06 16:56:03 +08:00
感谢所有为 Chat2DB 贡献力量的同学们~~
2023-06-20 22:28:55 +08:00
2023-07-02 19:49:46 +08:00
<a href="https://github.com/chat2db/Chat2DB/graphs/contributors">
<img src="https://contrib.rocks/image?repo=chat2db/Chat2DB" />
2023-06-22 11:26:48 +08:00
</a>
## Star History
2023-07-02 10:44:08 +08:00
<a href="https://star-history.com/#chat2db/chat2db&Date">
2023-06-22 11:26:48 +08:00
<picture>
2023-07-02 10:44:08 +08:00
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=chat2db/chat2db&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=chat2db/chat2db&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=chat2db/chat2db&type=Date" />
2023-06-22 11:26:48 +08:00
</picture>
2023-06-20 23:09:45 +08:00
</a>
2024-08-15 19:31:45 +08:00
## 友情链接
2024-08-15 19:34:12 +08:00
<p align="left">
2024-08-15 19:31:45 +08:00
<a href="https://sa-token.cc" target="_blank">
2024-08-15 19:34:31 +08:00
<img src="https://github.com/user-attachments/assets/d2182835-057a-47e6-80fc-e9efc4792a7f" alt="sa-token" width="15%"/>
2024-08-15 19:31:45 +08:00
</a>
</p>