mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-30 05:49:25 +00:00
18 lines
389 B
Markdown
18 lines
389 B
Markdown
MYSQL Connection
|
|
==================================
|
|
MYSQL can connect mysql server.
|
|
|
|
inheriting the RDBMSDatabase
|
|
```
|
|
class MySQLConnect(RDBMSDatabase):
|
|
"""Connect MySQL Database fetch MetaData
|
|
Args:
|
|
Usage:
|
|
"""
|
|
|
|
type: str = "MySQL"
|
|
dialect: str = "mysql"
|
|
driver: str = "pymysql"
|
|
|
|
default_db = ["information_schema", "performance_schema", "sys", "mysql"]
|
|
``` |