操作步骤

    1. 登录 OCP。
    2. 查看集群状态。

    在顶部菜单栏上,选择 运维 > 日常运维后,单击 obtestcluster01, 查看 3 台 observer 状态均为 Normal;若为 inactive 状态,可等待 2~3分钟后再看状态。

    OceanBase 集群安装完成验证 - 图1

    1. 通过 mysql 客户端,直连数据库。

    可使用以下两种方式连接数据库:

    1. mysql-h10.244.0.96 -P2881 -uroot@sys -proot oceanbase -c
    2. mysql-h10.244.0.96 -P2881 -uroot -proot oceanbase -c

    登录后执行如下SQL,查看3台 server 的状态均为 active:

    1. select* from oceanbase .__all_server;
    1. 通过 mysql 客户端连接 OBProxy,直连数据库。

    可使用以下4中方式连接数据库:

    1. mysql-h10.244.0.96 -P2883 -uroot -proot oceanbase -c
    2. mysql-h10.244.0.96 -P2883 -uroot@sys -proot oceanbase -c
    3. mysql-h10.244.0.96 -P2883 -uroot@sys#obtestcluster01 -proot oceanbase -c
    4. mysql-h10.244.0.96 -P2883 -uobtestcluster01:sys:root -proot oceanbase -c

    登录后执行如下 SQL,查看 3 台server的状态均为 active:

    1. select* from oceanbase .__all_server;