forked from matrixorigin/matrixone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update readme and add import data topics (matrixorigin#4719)
Approved by: @dengn
- Loading branch information
1 parent
0724046
commit 102f8ef
Showing
32 changed files
with
1,367 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
docs/cn/MatrixOne/Develop/connect-mo/client-connect-to-matrixone.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# 客户端连接 MatrixOne 服务 | ||
|
||
MatrixOne 现在支持通过以下几种客户端的方式连接 MatrixOne 服务: | ||
|
||
- MySQL Client | ||
- Navicat | ||
|
||
## 前期准备 | ||
|
||
已完成[安装并启动 MatrixOne](../../Get-Started/install-standalone-matrixone.md)。 | ||
|
||
## 通过 MySQL Client 连接 MatrixOne 服务 | ||
|
||
1. 下载安装 [MySQL Client](https://dev.mysql.com/downloads/installer/)。 | ||
|
||
2. 下载完成后,你可以使用 MySQL 命令行客户端来连接 MatrixOne 服务。 | ||
|
||
``` | ||
mysql -h IP -P PORT -uUsername -p | ||
``` | ||
连接符的格式与MySQL格式相同,你需要提供用户名和密码。 | ||
此处以内置帐号作为示例: | ||
- user: dump | ||
- password: 111 | ||
``` | ||
mysql -h 127.0.0.1 -P 6001 -udump -p | ||
Enter password: | ||
``` | ||
3. 连接成功提示如下: | ||
``` | ||
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1031 | ||
Server version: 0.5.0 MatrixOne | ||
Copyright (c) 2000, 2022, Oracle and/or its affiliates. | ||
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. | ||
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. | ||
``` | ||
更多关于安装部署的问题,参见[部署常见问题](../../FAQs/deployment-faqs.md)。 | ||
## 通过 Navicat 连接 MatrixOne 服务 | ||
1. 下载安装 [Navicat](https://www.navicat.com/en/products)。 | ||
2. 安装 Navicat 完成后,打开 Navicat,点击左上角 **Connection > MySQL**, 在弹窗中填入如下参数: | ||
- **Connction Name**: MatrixOne | ||
- **Host**: 127.0.0.1 | ||
- **Port**: 6001 | ||
- **User Name**: dump | ||
- **Password**: 111 | ||
- **Save password**:勾选 | ||
3. 点击 **Save** 保存设置。 | ||
4. 双击左侧数据库目录中的 **MatrixOne**,图标点亮,连接成功。 |
34 changes: 34 additions & 0 deletions
34
docs/cn/MatrixOne/Develop/connect-mo/programming-connect-to-matrixone.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# 编程语言连接 MatrixOne 服务 | ||
|
||
MatrixOne 现在支持通过以下几种编程语言的方式连接 MatrixOne 服务: | ||
|
||
- Java | ||
- Python | ||
|
||
## 前期准备 | ||
|
||
已完成[安装并启动 MatrixOne](../../Get-Started/install-standalone-matrixone.md)。 | ||
|
||
## Java 语言的 JDBC 连接器连接 MatrixOne 服务 | ||
|
||
1. 下载安装 [Java 语言 JDBC 连接器](https://dev.mysql.com/downloads/connector/j/)。 | ||
|
||
2. 在应用程序中调用 `com.mysql.cj.jdbc.Driver` 驱动包即可。 | ||
|
||
!!! info | ||
关于通过 Java 语言的 JDBC 连接器连接 MatrixOne 服务的示例,参见[用 JDBC 连接器连接 MatrixOne 服务](../../Tutorial/develop-java-connect-mo.md)。 | ||
|
||
## Python 语言的 pymysql 工具连接 MatrixOne 服务 | ||
|
||
1. 下载安装 pymysql 工具: | ||
|
||
``` | ||
pip3 install pymysql | ||
``` | ||
2. 在应用程序中调用 `import pymysql` 即可,具体使用方式请参考 `pymysql` 官方文档:<https://pypi.org/project/PyMySQL/>。 | ||
!!! info | ||
关于通过 Python 语言的 pymysql 工具连接 MatrixOne 服务的示例,参见[用 MatrixOne 构建一个简单的股票分析 Python 应用程序](../../Tutorial/develop-python-application.md)。 | ||
<!--执行py脚本,1. python 脚本。或者是编程环境下,或者是终端,执行python脚本;2. 相应的数据库建表 3. python脚本完成对数据库的执行(操作) python3+python文件名称完成对数据库的操作--> |
Oops, something went wrong.