diff --git a/product/en/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md b/product/en/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md index cb7ef16526c8c8e7fc7bb193835201150a8fcfaa..d439da4c438d07e189b82be7ced0bc3dbbe0d573 100644 --- a/product/en/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md +++ b/product/en/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md @@ -17,9 +17,11 @@ A MogDB container based on the ARM64 architecture runs in Debian 10.
-## Single Instance Installation +## Docker-based Deployment -### Before You Start +### Single Instance Installation + +#### Before You Start The installation of a MogDB container is independent of the host OS. All OSs that can run a container enginer are supported, such as Linux, Windows, and macOS. @@ -29,7 +31,7 @@ Docker is an open source application container engine based on Go and compliant Docker Desktop download address: -### Installation Procedures +#### Installation Procedures 1. Run Docker. @@ -47,37 +49,16 @@ Docker Desktop download address: Note: > > - MogDB uses port 5432 in the container for listening by default. If you want to access the database from outside the container, you need to specify the `-p` parameter in `docker run` command. For example, the above command will allow access to the container database using port 15432. - > - Once the container is deleted, all the data and configuration in the container will be lost. After re-running a container from the image, all the data is presented in the initialized state. So for the database container, in order to prevent the loss of data due to the demise of the container or corruption, the operation of persistent storage data is required. This is achieved by specifying the `-v` parameter in `docker run` command. For example, the above command will specify that all data files of MogDB will be stored under **/mymogdb** of the host. In addition, If you use Podman, there will be a target path check. Therefore you need to create the target path in advance (step 4). + > - Once the container is deleted, all the data and configuration in the container will be lost. After re-running a container from the image, all the data is presented in the initialized state. So for the database container, in order to prevent the loss of data due to the demise of the container or corruption, the operation of persistent storage data is required. This is achieved by specifying the `-v` parameter in `docker run` command. For example, the above command will specify that all data files of MogDB will be stored under **/mogdb** of the host. In addition, If you use Podman, there will be a target path check. Therefore you need to create the target path in advance (step 4). 5. Open the docker terminal: ```bash - docker exec -it mymogdb bash + docker exec -it mogdb bash ``` Now, the single instance installation in a MogDB container is complete. -### Using MogDB +#### Using MogDB After the installation is complete and enter the container, switch to omm user by running "su - omm", you can access the database via gsql and use MogDB properly. @@ -124,7 +105,7 @@ MogDB=#
-### Environment Variables +#### Environment Variables To flexibly use an MogDB image, you can set additional parameters. In the future, more control parameters will be added. The current version supports the setting of the following variables. @@ -150,13 +131,13 @@ Specifies the database port. The default value is **5432**.
-## Primary/Standby Installation +### Primary/Standby Installation -### Before You Begin +#### Before You Begin To implement primary/standby installation in a MogDB container, please complete the steps in the previous document **Single Instance Installation** first. -### Procedures +#### Procedures 1. Switch to user **root**. @@ -222,7 +203,7 @@ To implement primary/standby installation in a MogDB container, please complete > Note: As shown in the figures above, the senders info and the receiver info indicate that the status of the primary and standby databases is normal. -### Read/Write Testing +#### Read/Write Testing Primary database write test: @@ -246,7 +227,7 @@ delete from test; > Note: The result shows that the primary database is writable and the standby database is readable but not writable. -### Switchover Testing +#### Switchover Testing Switch **mogdb_slave_one** as the primary database and **mogdb_master** as the standby database. @@ -276,7 +257,7 @@ gs_ctl query -D /var/lib/opengauss/data/ You can find that **mogdb_master** becomes the standby database and **mogdb_slave_one** becomes the primary database. The switchover is successful. -### Read/Write Verification +#### Read/Write Verification Perform write validation on the primary database **mogdb_slave_one**. @@ -331,7 +312,7 @@ MogDB 2.1.0 and later supports Kubernetes-based deployment. gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. - + MogDB=# ``` diff --git a/product/en/docs-mogdb/v2.1/quick-start/container-based-installation.md b/product/en/docs-mogdb/v2.1/quick-start/container-based-installation.md index 05a364da13e71c15eb570dd32043a85a0da45e6b..e1a654b8c2b80cdf0404750e1b5cec89e933e56c 100644 --- a/product/en/docs-mogdb/v2.1/quick-start/container-based-installation.md +++ b/product/en/docs-mogdb/v2.1/quick-start/container-based-installation.md @@ -17,7 +17,9 @@ A MogDB container based on the ARM64 architecture runs in Debian 10.
-## Before You Start +## Docker-based Deployment + +### Before You Start The installation of a MogDB container is independent of the host OS. All OSs that can run a container enginer are supported, such as Linux, Windows, and macOS. @@ -29,7 +31,7 @@ Docker Desktop download address: -## Installation Procedures +### Installation Procedures 1. Run Docker. @@ -47,37 +49,16 @@ Docker Desktop download address: Note: > > - MogDB uses port 5432 in the container for listening by default. If you want to access the database from outside the container, you need to specify the `-p` parameter in `docker run` command. For example, the above command will allow access to the container database using port 15432. - > - Once the container is deleted, all the data and configuration in the container will be lost. After re-running a container from the image, all the data is presented in the initialized state. So for the database container, in order to prevent the loss of data due to the demise of the container or corruption, the operation of persistent storage data is required. This is achieved by specifying the `-v` parameter in `docker run` command. For example, the above command will specify that all data files of MogDB will be stored under **/mymogdb** of the host. In addition, If you use Podman, there will be a target path check. Therefore you need to create the target path in advance (step 4). + > - Once the container is deleted, all the data and configuration in the container will be lost. After re-running a container from the image, all the data is presented in the initialized state. So for the database container, in order to prevent the loss of data due to the demise of the container or corruption, the operation of persistent storage data is required. This is achieved by specifying the `-v` parameter in `docker run` command. For example, the above command will specify that all data files of MogDB will be stored under **/mogdb** of the host. In addition, If you use Podman, there will be a target path check. Therefore you need to create the target path in advance (step 4). -5. Execute bash in the **mymogdb** container via the **exec** command: +5. Execute bash in the **mogdb** container via the **exec** command: ```bash - docker exec -it mymogdb bash + docker exec -it mogdb bash ``` Now, the installation of MogDB in the container is complete.
-## Using MogDB +### Using MogDB After the installation is complete and enter the container, switch to omm user by running "su - omm", you can access the database via gsql and use MogDB properly. @@ -126,7 +107,7 @@ postgres=#
-## Environment Variables +### Environment Variables To flexibly use an MogDB image, you can set additional parameters. In the future, more control parameters will be added. The current version supports the setting of the following variables: @@ -181,7 +162,7 @@ MogDB 2.1.0 and later supports Kubernetes-based deployment. gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. - + MogDB=# ``` diff --git a/product/en/docs-mogdb/v2.1/quick-start/mogila.md b/product/en/docs-mogdb/v2.1/quick-start/mogila.md index 7faa4b822ae37f4b4abdb6a8acfb1202e4904776..7a97b35b2f8dce66a4ca225ae09ccf24ba54a72c 100644 --- a/product/en/docs-mogdb/v2.1/quick-start/mogila.md +++ b/product/en/docs-mogdb/v2.1/quick-start/mogila.md @@ -9,7 +9,9 @@ date: 2022-02-11 # Using Sample Dataset Mogila -MogDB provides a sample dataset Mogila, which is a database representing a DVD rental store (remember those?!), containing information about films (like title, category, actresses), rental stores (like address, staff members, customers) and rentals +MogDB provides a sample dataset Mogila, which is a port of the [Sakila example database](https://dev.mysql.com/doc/sakila/en/) available for MySQL. **Sakila** was originally developed by Mike Hillyer of the MySQL AB documentation team. It is intended to provide a standard schema that can be used for examples in books, tutorials, articles, samples, etc. + +Mogila is a database representing a DVD rental store, containing information about films (like title, category, actresses), rental stores (like address, staff members, customers) and rentals. Mogila works against MogDB 2.1.0 and above. @@ -27,27 +29,9 @@ The image below shows an overview of the Mogila database tables and views. Here The Mogila sample dataset has been built into the MogDB Container Edition, and no additional installation is required. -1. On terminal pull the latest mogdb image: - - amd - - ``` - docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd - ``` - - arm - - ``` - docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_arm - ``` - -2. Run image: - - ``` - docker run --name mogdb --privileged=true -d -e GS_PASSWORD=Enmo@123 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd - ``` +1. [Install container-based MogDB](container-based-installation). -3. Done! Just use: +2. Use mogila: ``` docker exec -it mogdb bash @@ -84,7 +68,7 @@ The Mogila sample dataset has been built into the MogDB Container Edition, and n ## Use Mogila on MogDB Enterprise Edition -1. [Install MogDB](https://docs.mogdb.io/zh/mogdb/v2.1/installation-on-a-single-node)。 +1. [Install MogDB](installation-on-a-single-node)。 2. Create the sample database mogila and user mogdb, and quit. diff --git a/product/zh/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md b/product/zh/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md index 61780bb704f0d9c16167942370f50a4b253e5d4e..915885b2b7716eb6e534d1b39a15659773f9d818 100644 --- a/product/zh/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md +++ b/product/zh/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md @@ -17,9 +17,11 @@ ARM64架构的MogDB容器运行在Debian 10 操作系统中。
-## 单实例安装 +## Docker部署 -### 准备工作 +### 单实例安装 + +#### 准备工作 容器化MogDB的安装与宿主机的操作系统无关,能够运行容器引擎的所有操作系统均可支持,比如Linux,Windows,macOS。 在安装容器版MogDB之前,您需要先安装容器运行时环境,比如Docker。 @@ -30,7 +32,7 @@ Docker Desktop下载地址:
-### 安装步骤 +#### 安装步骤 1. 启动Docker服务。 @@ -48,37 +50,16 @@ Docker Desktop下载地址: docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_arm ``` - 以x86-64架构的机器为例: - - ```bash - docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd - 2.1.0_amd: Pulling from enmotech/mogdb - feac53061382: Pull complete - 3d93ed1381ed: Pull complete - ff71768be531: Pull complete - f0e5522ade34: Pull complete - 5bcc54da2fc0: Pull complete - 615274e4a1ad: Pull complete - 14de03ed7a5f: Pull complete - ec2e6c8ece85: Pull complete - b5884cae3461: Pull complete - 865b32103ae9: Pull complete - b183a90e4bf8: Pull complete - Digest: sha256:8d83350d717ca4444384c69c2188a99afe448c997594b5f2712d2cec63068415 - Status: Downloaded newer image for swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd - swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd - ``` - -3. 输入以下命令为 MogDB 创建运行目录,下文以“mymogdb”为例: +3. 输入以下命令为 MogDB 创建运行目录,下文以“mogdb”为例: ```bash - mkdir /mymogdb + mkdir /mogdb ``` -4. 继续输入以下命令创建一个新的容器,将容器命名为“mymogdb”,以启动 MogDB 实例: +4. 继续输入以下命令创建一个新的容器,将容器命名为“mogdb”,以启动 MogDB 实例: ```bash - docker run --name mymogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v /mymogdb:/var/lib/opengauss -p 15432:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd + docker run --name mogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v /mogdb:/var/lib/opengauss -p 15432:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd ``` 对于Windows系统而言: @@ -88,31 +69,31 @@ Docker Desktop下载地址: ```bash docker volume create mogdata - docker run --name mymogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v mogdata:/var/lib/opengauss -p 15453:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd + docker run --name mogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v mogdata:/var/lib/opengauss -p 15453:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd ``` - 如果Docker启用WSL 2做引擎,请执行以下命令创建容器: ```bash - docker run --name mymogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v C:\mymogdb:/var/lib/opengauss -p 15432:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd + docker run --name mogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v C:\mogdb:/var/lib/opengauss -p 15432:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd ``` > 注意: > > - MogDB的默认监听启动在容器内的5432端口上,如果想要从容器外部访问数据库,则需要在`docker run`的时候指定`-p`参数。比如以上命令将允许使用15432端口访问容器数据库。 - > - 容器一旦被删除,容器内的所有数据和配置也均会丢失,而从镜像重新运行一个容器的话,则所有数据又都是呈现在初始化状态,因此对于数据库容器来说,为了防止因为容器的消亡或者损坏导致的数据丢失,需要进行持久化存储数据的操作。通过在`docker run`的时候指定`-v`参数来实现。比如以上命令将会指定将MogDB的所有数据文件存储在宿主机的`/mymogdb`下。如果使用podman,会有目标路径检查,需要预先创建宿主机目标路径(步骤4)。 + > - 容器一旦被删除,容器内的所有数据和配置也均会丢失,而从镜像重新运行一个容器的话,则所有数据又都是呈现在初始化状态,因此对于数据库容器来说,为了防止因为容器的消亡或者损坏导致的数据丢失,需要进行持久化存储数据的操作。通过在`docker run`的时候指定`-v`参数来实现。比如以上命令将会指定将MogDB的所有数据文件存储在宿主机的`/mogdb`下。如果使用podman,会有目标路径检查,需要预先创建宿主机目标路径(步骤4)。 5. 进入容器终端: ```bash - docker exec -it mymogdb bash + docker exec -it mogdb bash ``` 至此,MogDB 容器版单实例安装完成。
-### 使用MogDB +#### 使用MogDB 安装完成并进入容器后,通过`su - omm`切换为omm用户,即可通过gsql进行数据库访问以正常体验MogDB各项功能: @@ -128,7 +109,7 @@ MogDB=#
-### 环境变量 +#### 环境变量 为了更灵活地使用MogDB镜像,可以设置额外的参数。未来我们会扩充更多的可控制参数,当前版本支持以下变量的设定。 @@ -154,13 +135,13 @@ MogDB的密码有复杂度要求,密码长度8个字符以上,必须同时
-## 主备安装 +### 主备安装 -### 准备工作 +#### 准备工作 如需进行MogDB容器版主备搭建,请先完成上文“单实例安装”中的步骤。 -### 操作步骤 +#### 操作步骤 1. 切换到root用户: @@ -226,7 +207,7 @@ MogDB的密码有复杂度要求,密码长度8个字符以上,必须同时 > 说明:从上面主库Senders信息和备库Receiver可以看到主备状态正常。 -### 读写测试 +#### 读写测试 主库写测试: @@ -250,7 +231,7 @@ delete from test; > 说明:命令结果显示主库可写,备库可读但不可写。 -### 切换测试 +#### 切换测试 将mogdb_slave_one切换为主库,mogdb_master切换为备库。 @@ -280,7 +261,7 @@ gs_ctl query -D /var/lib/opengauss/data/ 可以看到mogdb_master变为备库,mogdb_slave_one变为主库,切换成功。 -### 数据读写验证 +#### 数据读写验证 切换后的主库mogdb_slave_one做写入验证: @@ -335,7 +316,7 @@ MogDB 2.1.0版本以后支持Kubernetes部署。 gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. - + MogDB=# ``` diff --git a/product/zh/docs-mogdb/v2.1/quick-start/container-based-installation.md b/product/zh/docs-mogdb/v2.1/quick-start/container-based-installation.md index 3df3f7c8bdae3795b1419172f9652b370bda0792..23c3f5ca971e9b8cc3bd6e7c27c8751bc1bb7463 100644 --- a/product/zh/docs-mogdb/v2.1/quick-start/container-based-installation.md +++ b/product/zh/docs-mogdb/v2.1/quick-start/container-based-installation.md @@ -13,7 +13,9 @@ ARM64架构的MogDB容器运行在Debian 10 操作系统中。
-## 准备工作 +## Docker部署 + +### 准备工作 容器化MogDB的安装与宿主机的操作系统无关,能够运行容器引擎的所有操作系统均可支持,比如Linux,Windows,macOS。 在安装容器版MogDB之前,您需要先安装容器运行时环境,比如Docker。 @@ -24,7 +26,7 @@ Docker Desktop下载地址:
-## 安装步骤 +### 安装步骤 1. 启动Docker服务。 @@ -42,37 +44,16 @@ Docker Desktop下载地址: docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_arm ``` - 以x86-64架构的机器为例: - - ```bash - docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd - 2.1.0_amd: Pulling from enmotech/mogdb - feac53061382: Pull complete - 3d93ed1381ed: Pull complete - ff71768be531: Pull complete - f0e5522ade34: Pull complete - 5bcc54da2fc0: Pull complete - 615274e4a1ad: Pull complete - 14de03ed7a5f: Pull complete - ec2e6c8ece85: Pull complete - b5884cae3461: Pull complete - 865b32103ae9: Pull complete - b183a90e4bf8: Pull complete - Digest: sha256:75f89b9254d8d6f3e7e95f08b473704f2ba159d44e7a3036286ca1ff5eb5421c - Status: Downloaded newer image for swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd - swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd - ``` - -3. 输入以下命令为MogDB创建运行目录,下文以“mymogdb”为例: +3. 输入以下命令为MogDB创建运行目录,下文以“mogdb”为例: ```bash - mkdir /mymogdb + mkdir /mogdb ``` -4. 继续输入以下命令创建一个新的容器,将容器命名为“mymogdb”,以启动MogDB实例: +4. 继续输入以下命令创建一个新的容器,将容器命名为“mogdb”,以启动MogDB实例: ```bash - docker run --name mymogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v /mymogdb:/var/lib/opengauss -p 15432:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd + docker run --name mogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v /mogdb:/var/lib/opengauss -p 15432:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd ``` 对于Windows系统而言: @@ -82,31 +63,31 @@ Docker Desktop下载地址: ```bash docker volume create mogdata - docker run --name mymogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v mogdata:/var/lib/opengauss -p 15453:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd + docker run --name mogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v mogdata:/var/lib/opengauss -p 15453:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd ``` - 如果Docker启用WSL 2做引擎,请执行以下命令创建容器: ```bash - docker run --name mymogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v C:\mymogdb:/var/lib/opengauss -p 15432:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd + docker run --name mogdb --privileged=true -d -e GS_PASSWORD=Secretpassword@123 -v C:\mogdb:/var/lib/opengauss -p 15432:5432 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd ``` > 注意: > > - MogDB的默认监听启动在容器内的5432端口上,如果想要从容器外部访问数据库,则需要在`docker run`的时候指定`-p`参数。比如以上命令将允许使用15432端口访问容器数据库。 - >- 容器一旦被删除,容器内的所有数据和配置也均会丢失,而从镜像重新运行一个容器的话,则所有数据又都是呈现在初始化状态,因此对于数据库容器来说,为了防止因为容器的消亡或者损坏导致的数据丢失,需要进行持久化存储数据的操作。通过在`docker run`的时候指定`-v`参数来实现。比如以上命令将会指定将MogDB的所有数据文件存储在宿主机的`/mymogdb`下。如果使用podman,会有目标路径检查,需要预先创建宿主机目标路径(步骤4)。 + >- 容器一旦被删除,容器内的所有数据和配置也均会丢失,而从镜像重新运行一个容器的话,则所有数据又都是呈现在初始化状态,因此对于数据库容器来说,为了防止因为容器的消亡或者损坏导致的数据丢失,需要进行持久化存储数据的操作。通过在`docker run`的时候指定`-v`参数来实现。比如以上命令将会指定将MogDB的所有数据文件存储在宿主机的`/mogdb`下。如果使用podman,会有目标路径检查,需要预先创建宿主机目标路径(步骤4)。 5. 进入容器终端: ```bash - docker exec -it mymogdb bash + docker exec -it mogdb bash ``` 至此,MogDB容器版安装完成。
-## 使用MogDB +### 使用MogDB 安装完成并进入容器后,通过`su - omm`切换为omm用户,即可通过gsql进行数据库访问以正常体验MogDB各项功能: @@ -122,7 +103,7 @@ postgres=#
-## 环境变量 +### 环境变量 为了更灵活地使用MogDB镜像,可以设置额外的参数。未来我们会扩充更多的可控制参数,当前版本支持以下变量的设定。 @@ -177,7 +158,7 @@ MogDB 2.1.0版本以后支持Kubernetes部署。 gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. - + MogDB=# ``` diff --git a/product/zh/docs-mogdb/v2.1/quick-start/mogila.md b/product/zh/docs-mogdb/v2.1/quick-start/mogila.md index 4c2987e9b958e410ca4141fc5bcfd7a9e2b91d8d..99c48798a55c5293dcd44f2954e4d3f4852b9244 100644 --- a/product/zh/docs-mogdb/v2.1/quick-start/mogila.md +++ b/product/zh/docs-mogdb/v2.1/quick-start/mogila.md @@ -9,7 +9,9 @@ date: 2022-01-20 # 使用样本数据集Mogila -MogDB提供了一个样本数据库Mogila,该数据库是一个关于DVD出租店信息的数据库,包含有关电影(如标题、类别、女演员)、出租店(如地址、工作人员、客户)和出租的信息。您可以使用Mogila数据库进行各种功能测试。 +MogDB提供了一个样本数据集Mogila,本数据集借鉴了适用于MySQL的[Sakila示例数据库](https://dev.mysql.com/doc/sakila/en/)。**Sakila**最初由MySQL AB文档团队的Mike Hillyer开发,其目的是提供一个可用于书籍、教程、文章、样本等示例的标准schema。 + +Mogila数据集是一个关于DVD出租店信息的数据库,包含有关电影(如标题、类别、女演员)、出租店(如地址、工作人员、客户)和出租的信息。您可以使用Mogila数据库进行各种功能测试。 Mogila适用于MogDB 2.1.0及更高版本。 @@ -27,27 +29,9 @@ Mogila适用于MogDB 2.1.0及更高版本。 MogDB容器版本已经内置了Mogila样本数据库,无需额外安装。 -1. 在终端拉取最新的MogDB镜像: - - amd - - ``` - docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd - ``` - - arm - - ``` - docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_arm - ``` - -2. 创建容器并运行: - - ``` - docker run --name mogdb --privileged=true -d -e GS_PASSWORD=Enmo@123 swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd - ``` +1. [安装MogDB容器版](https://docs.mogdb.io/zh/mogdb/v2.1/container-based-installation)。 -3. 使用样本数据库Mogila: +2. 使用样本数据库Mogila: ``` docker exec -it mogdb bash @@ -84,7 +68,7 @@ MogDB容器版本已经内置了Mogila样本数据库,无需额外安装。 ## 在MogDB企业版中使用Mogila -1. [安装MogDB](https://docs.mogdb.io/zh/mogdb/v2.1/installation-on-a-single-node)。 +1. [安装MogDB企业版](https://docs.mogdb.io/zh/mogdb/v2.1/installation-on-a-single-node)。 2. 创建样本数据库mogila及mogdb用户,然后登出: