Skip to content
Snippets Groups Projects
Unverified Commit 24bd1f8a authored by prinz's avatar prinz Committed by GitHub
Browse files

fix final 0.5.1 docs (#5373)

* fix final 0.5.1 docs

* Update import-data.md

* Update export-data.md
parent 63d97e4b
No related branches found
No related tags found
No related merge requests found
Showing
with 451 additions and 524 deletions
......@@ -157,9 +157,11 @@ MatrixOne supports Linux and MacOS. You can install MatrixOne either by [buildin
For other installation types, please refer to [MatrixOne installation](https://docs.matrixorigin.io/0.5.1/MatrixOne/Get-Started/install-standalone-matrixone/) for more details.
#### **Building from source**
**Step 1. Install Go (version 1.19 is required).**
**Step 1. Install Go (version 1.19 is required)**
**Step 2. Get the MatrixOne code to build MatrixOne**
**Step 2. Install MySQL Client (version [8.0.30](https://dev.mysql.com/downloads/installer/) is required)**
**Step 3. Get the MatrixOne code to build MatrixOne**
Depending on your needs, choose whether you want to keep your code up to date, or if you want to get the latest stable version of the code.
......@@ -239,7 +241,7 @@ docker run -d -p 6001:6001 --name matrixone matrixorigin/matrixone:0.5.1
```bash
docker run -d -p 6001:6001 --name matrixone matrixorigin/matrixone:nightly-commitnumber
```
!!! info
The *nightly* version is updated once a day.
......
......@@ -149,9 +149,11 @@ MatrixOne目前支持Linux及MacOS系统,您可以通过源码安装或者dock
#### 使用源代码搭建
**步骤 1.** 搭建Go语言环境(至少需要1.19版本)
**步骤 1.** 搭建Go语言环境(至少需要1.19版本)
**步骤 2.** 获取MatrixOne源码,搭建MatrixOne
**步骤 2.** 安装部署 [MySQL 客户端 8.0.30 版本](https://dev.mysql.com/downloads/installer/)
**步骤 3.** 获取MatrixOne源码,搭建MatrixOne
根据您的需要,选择您所获取的代码永远保持最新,还是获得稳定版本的代码。
......
# 客户端连接 MatrixOne 服务
# 数据库客户端工具连接 MatrixOne 服务
MatrixOne 现在支持通过以下几种客户端的方式连接 MatrixOne 服务:
MatrixOne 现在支持通过以下几种数据库客户端工具的方式连接 MatrixOne 服务:
- MySQL Client
- Navicat
......@@ -36,7 +36,7 @@ MatrixOne 现在支持通过以下几种客户端的方式连接 MatrixOne 服
```
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1031
Server version: 0.5.0 MatrixOne
Server version: 0.5.1 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.
......@@ -79,6 +79,7 @@ MatrixOne 现在支持通过以下几种客户端的方式连接 MatrixOne 服
4. 鼠标右左侧数据库导航目录中的 **MatrixOne**,选择 **编辑连接**,在**连接设置**窗口的**驱动属性**区中修改如下参数,修改完成后点击**完成**,保存参数:
```
- characterSetResults: "utf8"
- continueBatchOnError: "false"
- useServerPrepStmts: "true"
......@@ -88,5 +89,6 @@ MatrixOne 现在支持通过以下几种客户端的方式连接 MatrixOne 服
- failoverReadOnly: "false"
- serverTimezone: "Asia/Shanghai"
- socketTimeout: 30000
```
5. 鼠标右左侧数据库导航目录中的 **MatrixOne**,选择**连接**,图标点亮,连接成功。
# Java 连接 MatrixOne 服务
# JDBC 连接 MatrixOne 服务
MatrixOne 现在支持 Java 语言的 JDBC 连接器连接 MatrixOne 服务。
......@@ -14,4 +14,4 @@ MatrixOne 现在支持 Java 语言的 JDBC 连接器连接 MatrixOne 服务。
## 参考文档
更多关于 Java 连接 MatrixOne 服务实践教程,参见[用 JDBC 连接器连接 MatrixOne 服务示例](../../Tutorial/develop-java-connect-mo.md)
更多关于 Java 连接 MatrixOne 服务实践教程,参见[用 JDBC 连接器连接 MatrixOne 服务示例](../../Tutorial/develop-java-crud-demo.md)
# Python 连接 MatrixOne 服务
MatrixOne 现在支持 Python 的 pymysql 连接 MatrixOne 服务。
MatrixOne 支持 Python 连接 MatrixOne 服务。
!!! Note
MatrixOne 0.5.0 和 0.5.1 版本仅支持 `pymysql` 工具连接,暂不支持 `sqlalchemy``mysql-connector`
## 前期准备
......
# Docker 启动 MatrixOne 时导出数据
本篇文档将指导你 Docker 启动 MatrixOne 时如何完成数据导出。
MatrixOne 支持导出数据保存为 *.txt**.csv* 类型。
## 开始前准备
- 已安装 Docker。
!!! note
MatrixOne 暂时不支持整库 dump 导出,仅支持使用 `SELECT...INTO OUTFILE` 语句导出表数据。
## 方式一:直接导出数据表到本地
使用 [Docker 运行 MatrixOne](../../Get-Started/install-standalone-matrixone.md),若仅需导出数据表,方式与 [通用方式导出数据](use-source-export-data.md)一致。
## 方式二:挂载目录
### 步骤
1. 使用 Docker 启动 MatrixOne,启动时将存放了数据文件的目录 *~/tmp/docker_export_demo/* 挂载到容器的某个目录下,这里容器目录以 */store* 为例:
```
docker run -d -p 6001:6001 -v ~/tmp/docker_export_demo/store:/store:rw --name matrixone matrixorigin/matrixone:0.5.1
```
2. 连接 MatrixOne 服务:
```
mysql -h 127.0.0.1 -P 6001 -udump -p111
```
2. 准备数据:
```sql
create database aaa;
use aaa;
CREATE TABLE `user` (`id` int(11) ,`user_name` varchar(255) ,`sex` varchar(255));
insert into user(id,user_name,sex) values('1', 'weder', 'man'), ('2', 'tom', 'man'), ('3', 'wederTom', 'man');
select * from user;
+------+-----------+------+
| id | user_name | sex |
+------+-----------+------+
| 1 | weder | man |
| 2 | tom | man |
| 3 | wederTom | man |
+------+-----------+------+
```
3. 导出表数据到 *~/tmp/docker_export_demo/store/export_datatable.txt*
```
select * from user into outfile 'store/export_datatable.txt';
```
4. 到你本地 *~/tmp/docker_export_demo/store/* 下查看导出情况。
导出成功,打开本地目录 *~/tmp/docker_export_demo/store/*,可见新建了一个 *export_datatable.txt* 文件,打开文件,展示结果如下:导出成功结果如下:
```
id,user_name,sex
1,"weder","man"
2,"tom","man"
3,"wederTom","man"
```
# 通用方式导出数据
# 导出数据
本篇文档将指导你使用 MatrixOne 如何完成数据导出。
......@@ -6,17 +6,21 @@ MatrixOne 支持导出数据保存为 *.txt* 及 *.csv* 类型。
## 开始前准备
- 已通过[源代码](https://docs.matrixorigin.io/cn/0.5.0/MatrixOne/Get-Started/install-standalone-matrixone/#1)[二进制包](https://docs.matrixorigin.io/cn/0.5.0/MatrixOne/Get-Started/install-standalone-matrixone/#2)完成安装 MatrixOne
- 已完成[连接 MatrixOne 服务](../Get-Started/connect-to-matrixone-server.md)
- 已通过[源代码](../../Get-Started/install-standalone-matrixone/#1)[二进制包](../../Get-Started/install-standalone-matrixone/#2)完成安装 MatrixOne
- 已完成[连接 MatrixOne 服务](../../Get-Started/connect-to-matrixone-server.md)
如果你使用 Docker 安装启动 MatrixOne,确保你已将数据文件目录挂载到容器目录下,示例如下:
```
docker run -d -p 6001:6001 -v ~/tmp/docker_export_demo/store:/store:rw --name matrixone matrixorigin/matrixone:0.5.1
```
!!! note
MatrixOne 暂时不支持整库 dump 导出,仅支持使用 `SELECT...INTO OUTFILE` 语句导出表数据。
- **场景描述**:在 MatrixOne 里新建一个表,把表数据导出到你指定的文件夹目录下,例如 *~/tmp/export_demo/export_datatable.txt*
### 步骤
1. 准备数据:
1. 在 MatrixOne 中新建一个数据
```sql
create database aaa;
......@@ -33,15 +37,21 @@ MatrixOne 支持导出数据保存为 *.txt* 及 *.csv* 类型。
+------+-----------+------+
```
2. 导出表数据*~/tmp/export_demo/export_datatable.txt*
2. 导出表数据
```
select * from user into outfile '~/tmp/export_demo/export_datatable.txt'
```
- 如果你是通过源码或二进制包安装 MatrixOne,导出数据到 *~/tmp/export_demo/export_datatable.txt*
```
select * from user into outfile '~/tmp/export_demo/export_datatable.txt'
```
- 如果你是通过 Docker 安装启动 MatrixOne,导出数据到 *~/tmp/docker_export_demo/store/export_datatable.txt*
3. 到你本地 *~/tmp/export_demo/export_datatable.txt* 下查看导出情况。
```
select * from user into outfile 'store/export_datatable.txt';
```
导出成功,打开本地目录 *~/tmp/export_demo/*,可见新建了一个 *export_datatable.txt* 文件,打开文件,展示结果如下
3. 到你本地 *export_datatable.txt* 文件下查看导出情况
```
id,user_name,sex
......
# 通用方式导出数据
本篇文档将指导你使用 MatrixOne 如何完成数据导出。
## 开始前准备
- 已通过[源代码](https://docs.matrixorigin.io/cn/0.5.0/MatrixOne/Get-Started/install-standalone-matrixone/#1)[二进制包](https://docs.matrixorigin.io/cn/0.5.0/MatrixOne/Get-Started/install-standalone-matrixone/#2)完成安装 MatrixOne
- 已完成[连接 MatrixOne 服务](../Get-Started/connect-to-matrixone-server.md)
!!! note
MatrixOne 暂时不支持整库 dump 导出,仅支持使用 `SELECT...INTO OUTFILE` 语句导出表数据。
- **场景描述**:在 MatrixOne 里新建一个表,把表数据导出到你指定的文件夹目录下,例如 *~/tmp/export_demo/export_datatable.txt*
### 步骤
1. 准备数据:
```sql
create database aaa;
use aaa;
CREATE TABLE `user` (`id` int(11) ,`user_name` varchar(255) ,`sex` varchar(255));
insert into user(id,user_name,sex) values('1', 'weder', 'man'), ('2', 'tom', 'man'), ('3', 'wederTom', 'man');
select * from user;
+------+-----------+------+
| id | user_name | sex |
+------+-----------+------+
| 1 | weder | man |
| 2 | tom | man |
| 3 | wederTom | man |
+------+-----------+------+
```
2. 导出表数据到 *~/tmp/export_demo/export_datatable.txt*
```
select * from user into outfile '~/tmp/export_demo/export_datatable.txt'
```
3. 到你本地 *~/tmp/export_demo/export_datatable.txt* 下查看导出情况。
导出成功,打开本地目录 *~/tmp/export_demo/*,可见新建了一个 *export_datatable.txt* 文件,打开文件,展示结果如下:
```
id,user_name,sex
1,"weder","man"
2,"tom","man"
3,"wederTom","man"
```
# Docker 启动 MatrixOne 时导出数据
## 开始前准备
- 已安装 Docker。
!!! note
MatrixOne 暂时不支持整库 dump 导出,仅支持使用 `SELECT...INTO OUTFILE` 语句导出表数据。
## 方式一:直接导出数据表到本地
使用 [Docker 运行 MatrixOne](../../Get-Started/install-standalone-matrixone.md),若仅需导出数据表,方式与 [通用方式导出数据](use-source-export-data.md)一致。
## 方式二:挂载目录
### 步骤
1. 使用 Docker 启动 MatrixOne,启动时将存放了数据文件的目录 *~/tmp/docker_export_demo/* 挂载到容器的某个目录下,这里容器目录以 */store* 为例:
```
docker run -d -p 6001:6001 -v ~/tmp/docker_export_demo/store:/store:rw --name matrixone matrixorigin/matrixone:0.5.1
```
2. 连接 MatrixOne 服务:
```
mysql -h 127.0.0.1 -P 6001 -udump -p111
```
2. 准备数据:
```sql
create database aaa;
use aaa;
CREATE TABLE `user` (`id` int(11) ,`user_name` varchar(255) ,`sex` varchar(255));
insert into user(id,user_name,sex) values('1', 'weder', 'man'), ('2', 'tom', 'man'), ('3', 'wederTom', 'man');
select * from user;
+------+-----------+------+
| id | user_name | sex |
+------+-----------+------+
| 1 | weder | man |
| 2 | tom | man |
| 3 | wederTom | man |
+------+-----------+------+
```
3. 导出表数据到 *~/tmp/docker_export_demo/store/export_datatable.txt*
```
select * from user into outfile 'store/export_datatable.txt';
```
4. 到你本地 *~/tmp/docker_export_demo/store/* 下查看导出情况。
导出成功,打开本地目录 *~/tmp/docker_export_demo/store/*,可见新建了一个 *export_datatable.txt* 文件,打开文件,展示结果如下:导出成功结果如下:
```
id,user_name,sex
1,"weder","man"
2,"tom","man"
3,"wederTom","man"
```
# Docker 启动 MatrixOne 时导入数据
# 导入数据
本篇文档将指导你在 Docker 启动 MatrixOne 时如何完成数据导入。
# MySQL 客户端启动 MatrixOne 时导入数据
本篇文档将指导你在 MySQL 客户端启动 MatrixOne 时如何完成数据导入。
## 开始前准备
- 已通过[Docker](https://docs.matrixorigin.io/cn/0.5.0/MatrixOne/Get-Started/install-standalone-matrixone/#3-docker)完成安装 MatrixOne
- 已通过[源代码](../../Get-Started/install-standalone-matrixone/#1)[二进制包](../../Get-Started/install-standalone-matrixone/#2)完成安装 MatrixOne
- 已完成[连接 MatrixOne 服务](../../Get-Started/connect-to-matrixone-server.md)
## 步骤
如果你使用 Docker 安装启动 MatrixOne,确保你已将数据文件目录挂载到容器目录下,示例如下:
```
docker run -d -p 6001:6001 -v ~/tmp/docker_loaddata_demo:/ssb-dbgen-path:rw --name matrixone matrixorigin/matrixone:0.5.1
```
上述示例为典型的安装和挂载方式,将其本地路径 *~/tmp/docker_loaddata_demo* 挂载到内部容器路径 */ssb-dbgen-path*
## 方式一:MySQL Client 中使用 `source` 命令,将 SQL 脚本导入 MatrixOne 中
您可以使用 `source` 命令或 `\.` 命令来执行 SQL 脚本文件。
```
mysql> source file_name
mysql> \. file_name
```
Usually `source` is used to execute many SQL statements, you can write your database&table creation, insert data in one SQL file and execute this file with `source` in MySQL Client. Each statement is a separate line, the lines starting with `--` or wrapped with `/*` are considered as comments and will be ignored.
If your SQL is from `mysqldump`, please refer to this [tutorial](../../Migrate/migrate-from-mysql-to-matrixone.md) about how to modify the SQL file to adapt to MatrixOne format.
通常 `source` 命令可以被用来执行很多 SQL 语句,你可以在你的数据库写入或创建表,插入数据到一个 SQL 文件中,并在 MySQL 客户端中使用 `source` 命令执行这个文件。每个 SQL 语句都是单独的一行,以 `--` 开头或是以 `/*` 换行的语句皆为注释,在执行 SQL 的过程中将被忽略。
如果你的 SQL 来自 `mysqldump`,参考[教程](../../Migrate/migrate-from-mysql-to-matrixone.md),了解如何修改 SQL 文件以适应 MatrixOne 格式。
## 方式二:MySQL Client 中使用 `Load data` 命令导入数据
基本步骤:
在 MySQL Client 中使用 `Load data` 命令将外部大数据文件导入,但目前只支持 *.csv* 格式的文件导入。
1. 将数据目录挂载到容器目录下。
2. 使用命令行(`source` 命令或者 `load data` 命令)将数据导入。
1. 在 MatrixOne 中执行 `Load Data` 之前,需要提前在 MatrixOne 中创建完成数据表。目前,数据文件需要与 MatrixOne 服务器在同一台机器上,如果它们在不同的机器上,则需要进行文件传输。
具体操作可以参见下述 **实践示例**
!!! note
如果你使用 Docker 启动 MatrixOne,需要先将数据文件挂载到容器的目录中。
## 实践示例
2. 在 MatrixOne 本地服务器中启动 MySQL 客户端以访问本地文件系统。
- **适用场景**: 使用 Docker 启动了 MatrixOne 服务,并且有大量数据集需要导入到 MatrixOne 数据库中。
- **场景描述**:本示例为你准备了 1GB 的数据集可直接下载使用,完成导入数据的步骤。
```
mysql -h 127.0.0.1 -P 6001 -udump -p111
```
1. 下载数据集文件,并将数据存放在目录 *~/tmp/docker_loaddata_demo/* 下:
3. 在 MySQL 客户端对对应的文件路径执行 `LOAD DATA`
```
mysql> LOAD DATA INFILE '/tmp/xxx.csv'
INTO TABLE xxxxxx
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY "\r\n";
```
!!! note
如果你使用 Docker 启动 MatrixOne,需要先将这个数据文件路径挂载到容器的目录中。
### 示例:使用 *docker* 执行 `Load data`
We will walk through the whole process of loading data with MatrixOne 0.5.1 docker version.
本示例将介绍如何使用 Docker 启动 MatrixOne 0.5.1 加载数据。
1. 下载数据集,并且将数据集存储到本地 *~/tmp/docker_loaddata_demo/* 路径下:
```
cd ~/tmp/docker_loaddata_demo/
......@@ -46,13 +91,13 @@
mysql -h 127.0.0.1 -P 6001 -udump -p111
```
5. 创建测试数据库和 *lineorder_flat* 表,并导入数据集
5. 在 MatrixOne 中新建表 *lineorder_flat*,并且将数据集导入至 MatriOne
```
create database if not exists ssb;
use ssb;
drop table if exists lineorder_flat;
CREATE TABLE lineorder_flat(
mysql> create database if not exists ssb;
mysql> use ssb;
mysql> drop table if exists lineorder_flat;
mysql> CREATE TABLE lineorder_flat(
LO_ORDERKEY bigint key,
LO_LINENUMBER int,
LO_CUSTKEY int,
......@@ -92,19 +137,19 @@
P_SIZE int,
P_CONTAINER char(10)
);
load data infile '/ssb-dbgen-path/lineorder_flat.tbl' into table lineorder_flat FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n';
mysql> load data infile '/ssb-dbgen-path/lineorder_flat.tbl' into table lineorder_flat FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n';
```
5. 导入成功后可执行 SQL 语句查导入数据量:
6. 导入成功后,可以使用 SQL 语句查导入数据的行数:
```
select count(*) from lineorder_flat;
/*
执行结果如下:
*/
+----------+
| count(*) |
+----------+
| 10272594 |
+----------+
```
```
select count(*) from lineorder_flat;
/*
expected results:
*/
+----------+
| count(*) |
+----------+
| 10272594 |
+----------+
```
# MySQL 客户端启动 MatrixOne 时导入数据
本篇文档将指导你在 MySQL 客户端启动 MatrixOne 时如何完成数据导入。
## 开始前准备
- 已通过[源代码](https://docs.matrixorigin.io/cn/0.5.0/MatrixOne/Get-Started/install-standalone-matrixone/#1)[二进制包](https://docs.matrixorigin.io/cn/0.5.0/MatrixOne/Get-Started/install-standalone-matrixone/#2)完成安装 MatrixOne
- 已完成[连接 MatrixOne 服务](../../Get-Started/connect-to-matrixone-server.md)
## 方式一:MySQL Client 中使用 source 命令,将 SQL 脚本导入 MatrixOne 中
这里将以示例的形式介绍 *MySQL Client 中使用 source 命令,将 SQL 脚本导入 MatrixOne 中*
- **适用场景**: 从 MySQL 中迁移数据到 MatrixOne
- **场景描述**:通过 *mysqldump* 工具从 MySQL 中已有数据导出成 SQL 脚本,导出的 SQL 脚本包含建表语句与 `INSERT` 数据语句。
- **修改参数**:在将数据导入 MatrixOne 之前,需要修改以下参数:
+ MatrixOne 目前不支持 DDL 语句中设置 `AUTO_INCREMENT`,带有 `AUTO_INCREMENT` 的语句不会有 `Syntax Error`,但是不会生效。应用层如果用到这个逻辑的需要一定修改。
+ `mysqldump` 导出的 SQL 脚本会自动将表名和列名全部加上\`\`,例如`table`, `name`;并且 MatrixOne 会对\`\`中的大小写进行识别,如果在表名或者列名中大小写混用,那么建议将所有的\`\`都去除,否则在查询的时候可能会出现 *该列名找不到* 的错误。
+ MatrixOne 默认支持 UTF8 字符集,但是不支持列级别或表级别的 `CHARACTER SET/CHARSET`, `COLLATE` 的设置。因此这些操作符相关内容均可以删除,不会影响导入内容。
+ mysqldump 导出的建表语句结尾处一般会带有如 `ENGINE=InnoDB``AUTO_INCREMENT=187`, `ROW_FORMAT=DYNAMIC/COMPACT`,这些配置项在 MatrixOne 目前均不存在,可以删除。
+ MatrixOne 目前仅支持单列主键索引,如果用到复合主键索引或者次级索引的情况需要对 SQL 进行修改,次级索引可以去除,复合主键索引也可以去除或者改写。
+ mysqldump 导出 SQL 脚本中某些列会声明使用 `BTREE` 索引,MatrixOne 暂不支持 `BTREE` 索引,需要删除。
+ 目前 MatrixOne 还不支持 `TEXT``BLOB` 类型,如果用到 `TEXT` 相关类型,可以改写成 `VARCHAR`
<!--0.6.0支持text-->
+ MatrixOne 不支持 `LOCK TABLE` 操作,因此用到 `LOCK/UNLOCK TABLE` 的语句可以去除。
+ MatrixOne 目前不支持系统变量的修改,因为用到如 `SET SYSTEM_VARIABLE = XX;` 的语句可以去除。
+ MatrixOne 目前不支持 `COMMENT`,语法上不会报错但是实际并不生效,`SHOW CREATE TABLE` 的时候不会有 `COMMENT` 信息。
<!--0.6.0支持comment-->
参考下面示例,了解 mysqldump 导出的表需要做出的修改:
- 一个原始的 mysqldump 导出的建表语句如下:
```
CREATE TABLE `roles` (
`role_id` int(11) NOT NULL AUTO_INCREMENT,
`role_name` varchar(128) DEFAULT NULL,
`state` int(11) DEFAULT NULL,
`company_id` int(11) DEFAULT NULL,
`remark` varchar(1024) DEFAULT NULL,
`created_by` varchar(64) DEFAULT NULL,
`created_time` datetime DEFAULT NULL,
`updated_by` varchar(64) DEFAULT NULL,
`updated_time` datetime DEFAULT NULL,
`is_deleted` int(11) DEFAULT '0',
`deleted_by` varchar(64) DEFAULT NULL,
`deleted_time` datetime DEFAULT NULL,
PRIMARY KEY (`role_id`),
KEY `idx_company_state` (`company_id`,`state`)
) ENGINE=InnoDB AUTO_INCREMENT=395 DEFAULT CHARSET=utf8;
```
- 导入 MatrixOne 的时候需要改写成:
```
CREATE TABLE roles (
role_id int(11) NOT NULL AUTO_INCREMENT,
role_name varchar(128) DEFAULT NULL,
state int(11) DEFAULT NULL,
company_id int(11) DEFAULT NULL,
remark varchar(1024) DEFAULT NULL,
created_by varchar(64) DEFAULT NULL,
created_time datetime DEFAULT NULL,
updated_by varchar(64) DEFAULT NULL,
updated_time datetime DEFAULT NULL,
is_deleted int(11) DEFAULT '0',
deleted_by varchar(64) DEFAULT NULL,
deleted_time datetime DEFAULT NULL,
PRIMARY KEY (role_id)
);
```
## 方式二:MySQL Client 中使用 Load data 命令导入数据
这里将以示例的形式介绍 *MySQL Client 中使用 Load data 命令导入数据*
- **适用场景**:将 *.csv** 格式的外部数据导入到 MatrixOne
- **场景描述**:在 MySQL Client 中使用 Load data 命令将外部数据文件导入,但目前只支持 *.csv* 格式的文件导入。
### 步骤
适合导入到 MatrixOne 的原始数据就是表单类数据或者从 MySQL 使用 `SELECT INTO...OUTFILE` 生成的 *.csv* 格式文件。
1. MySQL Client 的导出语句如下:
```
mysql> SELECT * FROM xxxx
INTO OUTFILE "/tmp/xxx.csv"
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY "\r\n";
```
2. 在 MatrixOne 中需要先把相应的表建好,再通过 `LOAD DATA` 导入数据:
```
mysql> LOAD DATA INFILE '/tmp/xxx.csv'
INTO TABLE xxxxxx
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY "\r\n";
```
......@@ -34,4 +34,4 @@ Enter password:
目前,MatrixOne 只支持TCP监听。
更多有关连接 MatrixOne 的方式,参见[客户端连接 MatrixOne 服务](../Develop/connect-mo/client-connect-to-matrixone.md)[语言连接 MatrixOne 服务](../Develop/connect-mo/programming-connect-to-matrixone.md)
更多有关连接 MatrixOne 的方式,参见[客户端连接 MatrixOne 服务](../Develop/connect-mo/client-connect-to-matrixone.md)[JDBC 连接 MatrixOne 服务](../Develop/connect-mo/java-connect-to-matrixone.md)[Python 连接 MatrixOne 服务](../Develop/connect-mo/python-connect-to-matrixone.md)
......@@ -16,7 +16,11 @@
Go 语言需要升级到 1.19 版本。
### 2. 获取 MatrixOne 源码完成搭建
### 2. 安装部署 MySQL 客户端
MySQL 客户端请使用 [8.0.30](https://dev.mysql.com/downloads/installer/) 版本。
### 3. 获取 MatrixOne 源码完成搭建
根据您的需要,选择您所获取的代码永远保持最新,还是获得稳定版本的代码。
......@@ -72,7 +76,7 @@ Go 语言需要升级到 1.19 版本。
./mo-server system_vars_config.toml
```
### 3. 连接 MatrixOne 服务
### 4. 连接 MatrixOne 服务
当你完成安装 MatrixOne,你可以参考下面的章节,连接到 MatrixOne 服务器。
......@@ -99,15 +103,19 @@ unzip mo-server-v0.5.1-darwin-x86_64.zip
```
!!! info
MatrixOne 二进制包安装方式暂时对 ARM 处理器不能完全支持。MacOS系统 M1 芯片及以上可以使用源码方式安装 MatrixOne。
ARM 芯片硬件配置下,MatrixOne 仅支持通过源代码方式进行安装部署;如果你使用的是 MacOS 系统 M1 及以上版本,请使用<a href="#code_source">源代码</a>构建的方式安装部署 MatrixOne。若果在 X86 硬件配置下使用二进制方式安装部署 MatrixOne 会导致未知问题。
### 2. 启动 MatrixOne 服务
### 2. 安装部署 MySQL 客户端
MySQL 客户端请使用 [8.0.30](https://dev.mysql.com/downloads/installer/) 版本。
### 3. 启动 MatrixOne 服务
```
./mo-server system_vars_config.toml
```
### 3. 连接 MatrixOne 服务
### 4. 连接 MatrixOne 服务
当你完成安装 MatrixOne,你可以参考下面的章节,连接到 MatrixOne 服务器。
......@@ -171,5 +179,5 @@ docker run -d -p 6001:6001 -v ${path_name}/system_vars_config.toml:/system_vars_
## 参考文档
升级版本,参见[升级单机版 MatrixOne](update-standalone-matrixone.md)
升级版本,参见[升级单机版 MatrixOne](../Maintain/upgrade-standalone-matrixone.md)
常见的安装和部署问题,参见[安装和部署常见问题](../FAQs/deployment-faqs.md)
......@@ -69,7 +69,7 @@ make build
当你完成升级 MatrixOne,你可以参考下面的章节,连接到 MatrixOne 服务器。
参见[连接 MatrixOne 服务](connect-to-matrixone-server.md)
参见[连接 MatrixOne 服务](../Get-Started/connect-to-matrixone-server.md)
## <h2><a name="binary_packages_update">方法 2:使用二进制包进行升级</a></h2>
......@@ -134,7 +134,7 @@ cp -r ${path_name} store
当你完成升级 MatrixOne,你可以参考下面的章节,连接到 MatrixOne 服务器。
参见[连接 MatrixOne 服务](connect-to-matrixone-server.md)
参见[连接 MatrixOne 服务](../Get-Started/connect-to-matrixone-server.md)
## <h2><a name="use_docker_update">方法 3:使用 Docker 进行升级</a></h2>
......@@ -205,7 +205,7 @@ docker run -d -p 6001:6001 -v ${path_name}/system_vars_config.toml:/system_vars_
当你完成安装 MatrixOne,你可以参考下面的章节,连接到 MatrixOne 服务器。
参见[连接 MatrixOne 服务](connect-to-matrixone-server.md)
参见[连接 MatrixOne 服务](../Get-Started/connect-to-matrixone-server.md)
## 参考文档
......
# 将数据从 MySQL 迁移至 MatrixOne
本篇文档将指导你如何将数据从 MySQL 迁移至 MatrixOne。
## MySQL 数据转储
你需要拥有对 MySQL 实例的完全访问权限。
首先,使用 `mysqldump` 将 MySQL 表结构和数据通过以下命令转储到一个文件中。
```
mysqldump -h IP_ADDRESS -uUSERNAME -pPASSWORD -d DB_NAME1 DB_NAME2 ... OUTPUT_FILE_NAME.SQL
```
示例如下,使用命令将所有表结构和数据转储到一个名为 *a.sql* 的文件中。
```
mysqldump -h 127.0.0.1 -uroot -proot -d test a.sql
```
## 修改 *.sql* 文件
*.sql* 文件当前还不完全适用于 MatrixOne。你需要修改几个元素,以使 *.sql* 文件适应 MatrixOne 的格式。
* 需删除不支持的语法或功能:`AUTO_INCREMENT``UNIQUE KEY``KEY``CHARACTER SET/CHARSET``COLLATE``ROW_FORMAT``USING BTREE``LOCK TABLE``SET SYSTEM_VARIABLE``ENGINE`
* 暂不支持的数据类型:如果你使用的数据类型为 `TEXT``BLOB` 类型,那么你可以将它们修改为存储大小合适的 `VARCHAR` 类型。
* 有限的支持:如果你使用复合主键,需将复合主键修改为单一主键,或删除单一主键。
下面示例是一个典型的 `mysqldump` 表:
```
CREATE TABLE `roles` (
`role_id` int(11) NOT NULL AUTO_INCREMENT,
`role_name` varchar(128) DEFAULT NULL,
`state` int(11) DEFAULT NULL,
`company_id` int(11) DEFAULT NULL,
`remark` varchar(1024) DEFAULT NULL,
`created_by` text DEFAULT NULL,
`created_time` datetime DEFAULT NULL,
`updated_by` varchar(64) DEFAULT NULL,
`updated_time` datetime DEFAULT NULL,
`is_deleted` int(11) DEFAULT '0',
`deleted_by` varchar(64) DEFAULT NULL,
`deleted_time` datetime DEFAULT NULL,
PRIMARY KEY (`role_id`),
UNIQUE KEY(`state`),
KEY `idx_company_state` (`company_id`,`state`)
) ENGINE=InnoDB AUTO_INCREMENT=395 DEFAULT CHARSET=utf8;
```
在 MatrixOne 中成功创建这个表,它需要被修改为:
```
CREATE TABLE roles (
role_id int(11) NOT NULL,
role_name varchar(128) DEFAULT NULL,
state int(11) DEFAULT NULL,
company_id int(11) DEFAULT NULL,
remark varchar(1024) DEFAULT NULL,
created_by varchar(64) DEFAULT NULL,
created_time datetime DEFAULT NULL,
updated_by varchar(64) DEFAULT NULL,
updated_time datetime DEFAULT NULL,
is_deleted int(11) DEFAULT '0',
deleted_by varchar(64) DEFAULT NULL,
deleted_time datetime DEFAULT NULL,
PRIMARY KEY (role_id)
);
```
### 导入至 MatrixOne
转储的 *.sql* 文件修改完成之后,就可以将整个表结构和数据导入到 MatrixOne 中。
1. 打开 MySQL 终端并连接到 MatrixOne。
2. 通过 `source` 命令将 *.sql* 文件导入 MatrixOne。
```
mysql> source '/YOUR_PATH/a.sql'
```
如果 *.sql* 文件较大,可以使用如下命令在后台运行导入任务:
```
nohup mysql -h 127.0.0.1 -P 6001 -udump -p111 -e 'source /YOUR_PATH/a.sql' &
```
# Export data in general method
This document will guide you to export data in general method.
MatrixOne supports saving exported data into *.txt* and *.csv* types.
## Before you start
- Make sure you have already [installed and launched MatrixOne using source](https://docs.matrixorigin.io/0.5.1/MatrixOne/Get-Started/install-standalone-matrixone/#method-1-building-from-source) or [installed and launched MatrixOne using binary packages](https://docs.matrixorigin.io/0.5.1/MatrixOne/Get-Started/install-standalone-matrixone/#method-2-downloading-binary-packages).
- Make sure you have already [connected MatrixOne Server](../../Get-Started/connect-to-matrixone-server.md).
!!! note
MatrixOne does not support using `dump` to export the tables, only supports using `SELECT...INTO OUTFILE` to export the table.
- **Scenario description**:Create a table in MatrixOne, export the table to your local path, for example: *~/tmp/export_demo/export_datatable.txt*.
### Steps
1. Create tables in MatrixOne:
```sql
create database aaa;
use aaa;
CREATE TABLE `user` (`id` int(11) ,`user_name` varchar(255) ,`sex` varchar(255));
insert into user(id,user_name,sex) values('1', 'weder', 'man'), ('2', 'tom', 'man'), ('3', 'wederTom', 'man');
select * from user;
+------+-----------+------+
| id | user_name | sex |
+------+-----------+------+
| 1 | weder | man |
| 2 | tom | man |
| 3 | wederTom | man |
+------+-----------+------+
```
2. Export the table to your local directory, for example, *~/tmp/export_demo/export_datatable.txt*
```
select * from user into outfile '~/tmp/export_demo/export_datatable.txt'
```
3. Check the table in your local directory *~/tmp/export_demo/export_datatable.txt*.
Open the *~/tmp/export_demo/* directory, *export_datatable.txt* file is created, then open the file, check the result as below:
```
id,user_name,sex
1,"weder","man"
2,"tom","man"
3,"wederTom","man"
```
# Export data when launch MatrixOne using Docker
This document will guide you to export data when you launch MatrixOne using docker.
MatrixOne supports saving exported data into *.txt* and *.csv* types.
## Before you start
- Make sure you have already [installed MatrixOne using Docker](https://docs.matrixorigin.io/0.5.1/MatrixOne/Get-Started/install-standalone-matrixone/#method-3-using-docker).
!!! note
MatrixOne does not support using `dump` to export the tables, only supports using `SELECT...INTO OUTFILE` to export the table.
## Method 1: Export the table to your local directory
[Launch MatrixOne using docker](../../Get-Started/install-standalone-matrixone.md), then export the table to your local directory, see [Export data in general method](use-source-export-data.md).
## Method 2: Export the table to your container directory
### Steps
1. To mount the directory *~/tmp/docker_export_demo/* that stores data files to a directory in the container before launching MatrixOne using docker. For example, the container directory is */store*.
```
docker run -d -p 6001:6001 -v ~/tmp/docker_export_demo/store:/store:rw --name matrixone matrixorigin/matrixone:0.5.1
```
2. Connect to MatrixOne server:
```
mysql -h 127.0.0.1 -P 6001 -udump -p111
```
2. Create tables in MatrixOne:
```sql
create database aaa;
use aaa;
CREATE TABLE `user` (`id` int(11) ,`user_name` varchar(255) ,`sex` varchar(255));
insert into user(id,user_name,sex) values('1', 'weder', 'man'), ('2', 'tom', 'man'), ('3', 'wederTom', 'man');
select * from user;
+------+-----------+------+
| id | user_name | sex |
+------+-----------+------+
| 1 | weder | man |
| 2 | tom | man |
| 3 | wederTom | man |
+------+-----------+------+
```
3. Export the table to your container directory path,for example, *~/tmp/docker_export_demo/store/export_datatable.txt*
```
select * from user into outfile 'store/export_datatable.txt';
```
4. Check the table in your local directory*~/tmp/docker_export_demo/store/*.
Open the *~/tmp/docker_export_demo/store/* directory, *export_datatable.txt* file is created, then open the file, check the result as below:
```
id,user_name,sex
1,"weder","man"
2,"tom","man"
3,"wederTom","man"
```
......@@ -5,7 +5,7 @@ This document will guide you on how to import large amounts of data to MatrixOne
## Before you start
- Make sure you have already [installed and launched MatrixOne](https://docs.matrixorigin.io/0.5.1/MatrixOne/Get-Started/install-standalone-matrixone/).
- Use MySQL client to [connect to MatrixOne](https://docs.matrixorigin.io/0.5.1/MatrixOne/Get-Started/connect-to-matrixone-server/).
- Use MySQL client to [connect to MatrixOne](https://docs.matrixorigin.io/0.5.1/MatrixOne/Get-Started/connect-to-matrixone-server/).
If you use the `docker` install, please make sure that you have a data directory mounted to the container. For example,
......@@ -13,44 +13,46 @@ If you use the `docker` install, please make sure that you have a data directory
docker run -d -p 6001:6001 -v ~/tmp/docker_loaddata_demo:/ssb-dbgen-path:rw --name matrixone matrixorigin/matrixone:0.5.1
```
This typical installation maps its local path `~/tmp/docker_loaddata_demo` to a inner-container path `/ssb-dbgen-path`.
This typical installation maps its local path *~/tmp/docker_loaddata_demo* to a inner-container path */ssb-dbgen-path*.
## Method 1: Using the `Source` command in MySQL Client
You can execute an SQL script file using the `source` command or `\.` command in MySQL client.
You can execute an SQL script file using the `source` command or `\.` command in MySQL client.
```
mysql> source file_name
mysql> \. file_name
```
Usually `source` is used to execute many SQL statements, you can write your database&table creation, insert data in one SQL file and execute this file with `source` in MySQL Client. Each statement is a separate line, the lines starting with `--` or wrapped with `/*` are considered as comments and will be ignored.
Usually `source` is used to execute many SQL statements, you can write your database&table creation, insert data in one SQL file and execute this file with `source` in MySQL Client. Each statement is a separate line, the lines starting with `--` or wrapped with `/*` are considered as comments and will be ignored.
If your SQL is from `mysqldump`, please refer to this [tutorial](../../Migrate/migrate-from-mysql-to-matrixone.md) about how to modify the SQL file to adapt to MatrixOne format.
If your SQL is from `mysqldump`, please refer to this [tutorial](../../Migrate/migrate-from-mysql-to-matrixone.md) about how to modify the SQL file to adapt to MatrixOne format.
## Method 2: Using the `Load data` command in MySQL Client
You can use `Load Data` to import data from big data files. Currently, MatrixOne only supports `csv` files.
1. Before executing `Load Data` in MatrixOne, the table needs to be created in advance. For now, the data file is required to be at the same machine with MatrixOne server, a file transfer is necessary if they are in separate machines.
1. Before executing `Load Data` in MatrixOne, the table needs to be created in advance. For now, the data file is required to be at the same machine with MatrixOne server, a file transfer is necessary if they are in separate machines.
!Note: if you are working with MatrixOne `docker` version, please put the data file in the directory mounted to the container, otherwise the container cann't perceive.
!!! note
If you are working with MatrixOne `docker` version, please put the data file in the directory mounted to the container, otherwise the container cann't perceive.
2. Launch the MySQL Client in the MatrixOne local server for accessing the local file system.
2. Launch the MySQL Client in the MatrixOne local server for accessing the local file system.
```
mysql -h 127.0.0.1 -P 6001 -udump -p111
```
```
mysql -h 127.0.0.1 -P 6001 -udump -p111
```
3. Execute `LOAD DATA` with the corresponding file path in MySQL client.
3. Execute `LOAD DATA` with the corresponding file path in MySQL client.
```
mysql> LOAD DATA INFILE '/tmp/xxx.csv'
INTO TABLE xxxxxx
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY "\r\n";
```
```
mysql> LOAD DATA INFILE '/tmp/xxx.csv'
INTO TABLE xxxxxx
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY "\r\n";
```
!Note: For the `docker` version, the file path needs to be in the mounted directory.
!!! note
For the `docker` version, the file path needs to be in the mounted directory.
### Example using `Load data` with `docker` version
......@@ -58,88 +60,88 @@ We will walk through the whole process of loading data with MatrixOne 0.5.1 dock
1. Download the dataset file and store the data in *~/tmp/docker_loaddata_demo/*:
```
cd ~/tmp/docker_loaddata_demo/
wget https://community-shared-data-1308875761.cos.ap-beijing.myqcloud.com/lineorder_flat.tar.bz2
```
```
cd ~/tmp/docker_loaddata_demo/
wget https://community-shared-data-1308875761.cos.ap-beijing.myqcloud.com/lineorder_flat.tar.bz2
```
2. Unzip the dataset:
```
tar -jxvf lineorder_flat.tar.bz2
```
```
tar -jxvf lineorder_flat.tar.bz2
```
3. Use Docker to launch MatrixOne, and mount the directory *~/tmp/docker_loaddata_demo/* that stores data files to a directory in the container. The container directory is */sb-dbgen-path* as an example:
```
docker run -d -p 6001:6001 -v ~/tmp/docker_loaddata_demo:/ssb-dbgen-path:rw --name matrixone matrixorigin/matrixone:0.5.1
```
```
docker run -d -p 6001:6001 -v ~/tmp/ docker_loaddata_demo:/ssb-dbgen-path:rw --name matrixone matrixorigin/matrixone:0.5.1
```
4. Connect to MatrixOne server:
```
mysql -h 127.0.0.1 -P 6001 -udump -p111
```
```
mysql -h 127.0.0.1 -P 6001 -udump -p111
```
5. Create *lineorder_flat* tables in MatrixOne, and import the dataset into MatriOne:
```
mysql> create database if not exists ssb;
mysql> use ssb;
mysql> drop table if exists lineorder_flat;
mysql> CREATE TABLE lineorder_flat(
LO_ORDERKEY bigint key,
LO_LINENUMBER int,
LO_CUSTKEY int,
LO_PARTKEY int,
LO_SUPPKEY int,
LO_ORDERDATE date,
LO_ORDERPRIORITY char(15),
LO_SHIPPRIORITY tinyint,
LO_QUANTITY double,
LO_EXTENDEDPRICE double,
LO_ORDTOTALPRICE double,
LO_DISCOUNT double,
LO_REVENUE int unsigned,
LO_SUPPLYCOST int unsigned,
LO_TAX double,
LO_COMMITDATE date,
LO_SHIPMODE char(10),
C_NAME varchar(25),
C_ADDRESS varchar(25),
C_CITY char(10),
C_NATION char(15),
C_REGION char(12),
C_PHONE char(15),
C_MKTSEGMENT char(10),
S_NAME char(25),
S_ADDRESS varchar(25),
S_CITY char(10),
S_NATION char(15),
S_REGION char(12),
S_PHONE char(15),
P_NAME varchar(22),
P_MFGR char(6),
P_CATEGORY char(7),
P_BRAND char(9),
P_COLOR varchar(11),
P_TYPE varchar(25),
P_SIZE int,
P_CONTAINER char(10)
);
mysql> load data infile '/ssb-dbgen-path/lineorder_flat.tbl' into table lineorder_flat FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n';
```
```
mysql> create database if not exists ssb;
mysql> use ssb;
mysql> drop table if exists lineorder_flat;
mysql> CREATE TABLE lineorder_flat(
LO_ORDERKEY bigint key,
LO_LINENUMBER int,
LO_CUSTKEY int,
LO_PARTKEY int,
LO_SUPPKEY int,
LO_ORDERDATE date,
LO_ORDERPRIORITY char(15),
LO_SHIPPRIORITY tinyint,
LO_QUANTITY double,
LO_EXTENDEDPRICE double,
LO_ORDTOTALPRICE double,
LO_DISCOUNT double,
LO_REVENUE int unsigned,
LO_SUPPLYCOST int unsigned,
LO_TAX double,
LO_COMMITDATE date,
LO_SHIPMODE char(10),
C_NAME varchar(25),
C_ADDRESS varchar(25),
C_CITY char(10),
C_NATION char(15),
C_REGION char(12),
C_PHONE char(15),
C_MKTSEGMENT char(10),
S_NAME char(25),
S_ADDRESS varchar(25),
S_CITY char(10),
S_NATION char(15),
S_REGION char(12),
S_PHONE char(15),
P_NAME varchar(22),
P_MFGR char(6),
P_CATEGORY char(7),
P_BRAND char(9),
P_COLOR varchar(11),
P_TYPE varchar(25),
P_SIZE int,
P_CONTAINER char(10)
);
mysql> load data infile '/ssb-dbgen-path/lineorder_flat.tbl' into table lineorder_flat FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n';
```
6. After the import is successful, you can run SQL statements to check the rows of imported data:
```
select count(*) from lineorder_flat;
/*
expected results:
*/
+----------+
| count(*) |
+----------+
| 10272594 |
+----------+
```
```
select count(*) from lineorder_flat;
/*
expected results:
*/
+----------+
| count(*) |
+----------+
| 10272594 |
+----------+
```
......@@ -33,4 +33,4 @@ Enter password:
Currently, MatrixOne only supports the TCP listener.
For more information on connecting to MatriOne, see
[Using client connect to the MatrixOne server](../Develop/connect-mo/client-connect-to-matrixone.md) and [Using programming connect to the MatrixOne server](../Develop/connect-mo/programming-connect-to-matrixone.md).
[Using client connect to the MatrixOne server](../Develop/connect-mo/client-connect-to-matrixone.md),[Connecting to MatrixOne with JDBC](../Develop/connect-mo/java-connect-to-matrixone.md), and [Connecting to MatrixOne with Python](../Develop/connect-mo/python-connect-to-matrixone.md).
......@@ -16,7 +16,11 @@ For more information on the required operating system versions for deploying Mat
Go version 1.19 is required.
### 2. Get the MatrixOne code to build MatrixOne
### 2. Install MySQL Client
MySQL version [8.0.30](https://dev.mysql.com/downloads/installer/) is required.
### 3. Get the MatrixOne code to build MatrixOne
Depending on your needs, choose whether you want to keep your code up to date, or if you want to get the latest stable version of the code.
......@@ -72,7 +76,7 @@ The **main** branch is the default branch, the code on the main branch is always
./mo-server system_vars_config.toml
```
### 3. Connect to MatrixOne Server
### 4. Connect to MatrixOne Server
When you finish installing MatrixOne, you can refer to the section below to connect to the MatrixOne server.
......@@ -82,7 +86,11 @@ See [Connect to MatrixOne server](connect-to-matrixone-server.md).
For each release, you can download binary packages directly to run MatrixOne in the X86_64 Linux or Mac X86_64 environment.
### 1. Download binary packages and decompress
### 1. Install MySQL Client
MySQL version [8.0.30](https://dev.mysql.com/downloads/installer/) is required.
### 2. Download binary packages and decompress
Linux Environment
......@@ -99,15 +107,15 @@ unzip mo-server-v0.5.1-darwin-x86_64.zip
```
!!! info
MatrixOne only supports installation on ARM chipset with source code build; if you are using MacOS M1 and above, please use source code build to install MatrixOne as shown above. Using release binary files from X86 chipset will lead to unknown problems.
### 2.Launch MatrixOne server
MatrixOne only supports installation on ARM chipset with source code build; if you are using MacOS M1 and above, for more information on using source code build to install MatrixOne, see <a href="#code_source">Method 1: Building from source code</a>. Using release binary files from X86 chipset will lead to unknown problems.
### 3.Launch MatrixOne server
```
./mo-server system_vars_config.toml
```
### 3. Connect to MatrixOne Server
### 4. Connect to MatrixOne Server
When you finish installing MatrixOne, you can refer to the section below to connect to the MatrixOne server.
......@@ -171,5 +179,5 @@ See [Connect to MatrixOne server](connect-to-matrixone-server.md).
## Reference
- For more information on update, see [Update Standalone MatrixOne](update-standalone-matrixone.md).
- For more information on update, see [Upgrade Standalone MatrixOne](../Maintain/upgrade-standalone-matrixone.md).
- For more information on deployment,see [Deployment FAQs](../FAQs/deployment-faqs.md).
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment