客户端工具连接¶
MatrixOne 现在支持通过以下几种数据库客户端工具的方式连接 MatrixOne 服务:
MySQL Client
Navicat
DBeaver
前期准备¶
通过 MySQL Client 连接 MatrixOne Intelligence 服务¶
下载安装 MySQL Client。
下载完成后,你可以使用 MySQL 命令行客户端来连接 MatrixOne Intelligence 服务,只需要复制你获取的 MatrixOne Intelligence 实例的连接命令,并根据提示输入密码。
mysql -h freetier-01.cn-hangzhou.cluster.matrixonecloud.cn -P 6001 -u 585b49fc_852b_4bd1_b6d1_d64bc1d8xxxx:admin:accountadmin -p Enter password:
备注
如果需要使用 LOAD DATA LOCAL 语句读取本地文件,需要在连接时添加参数 --local-infile。
连接成功提示如下:
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1031 Server version: 8.0.30-MatrixOne-v2.0.3 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.
备注
MatrixOne Intelligence 与客户端默认是非加密传输,如果需要开启加密传输请参见数据传输加密。
通过 DBeaver 连接 MatrixOne Intelligence 服务¶
下载安装 DBeaver。
安装 DBeaver 完成后,打开 DBeaver,点击左上角连接图标,在弹窗中选择 MySQL,点击下一步。
在 Connect to a database 窗口的 Main 区中填写如下参数:
服务器地址: freetier-01.cn-hangzhou.cluster.matrixonecloud.cn
端口: 6001
数据库: system
用户名: 585b49fc_852b_4bd1_b6d1_d64bc1d8xxxx:admin:accountadmin
密码: your_password
保存密码: 勾选
备注
初次连接可以将 Database 选项填写系统库
system方便连接,后续可根据需求自行修改。
并点击连接详情修改连接名称为 moc。
双击左侧目录中的 moc,连接 MatrixOne Intelligence 服务。你可以在左侧目录树中看到默认的三个系统数据库:
默认情况下,DBeaver 中不展示视图。如需显示完整的系统数据库,你可以右键单击 moc,选择连接视图并打开显示系统对象:
设置完成后,你将看到五个系统数据库。