[TOC]
您需要知道的
- 请您务必确认使用 CentOS 6 或 CentOS 7,官方仅在以上两个版本上测试确认过
- 请务必确认实验环境内存 >= 8G
- 您可登陆 CentOS 官网进行操作系统下载试用
- 您可登陆 OceanBase 官网进行数据库下载试用
- CentOS 操作系统安装您可参考 G011-OS-INS-03 一文进行操作
1 环境检查
- 检查操作系统确认为 CentOS
[root@henry ~]# uname -a
Linux henry 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- 检查内存确认大于等于 8 G
[root@henry ~]# free -g
total used free shared buff/cache available
Mem: 7 4 0 0 2 2
Swap: 7 0 7
2 解压执行安装
- 解压
[root@henry ~]# mkdir -p /ob/soft
[root@henry ~]# cd /ob/soft
[root@henry soft]# ls
mini-ob-deploy.tar
[root@henry soft]# tar -zxvf mini-ob-deploy.tar
[root@henry soft]# ls
mini-ob-deploy mini-ob-deploy.tar
- 安装
[root@henry soft]# cd mini-ob-deploy/
[root@henry mini-ob-deploy]# ./hap.py ob1.reboot
3 登陆试用
- 通过 MySQL 客户端连接 OceanBase 数据库
[root@henry mini-ob-deploy]# ./hap.py ob1.obmysql
2020-11-03 11:27:05.068565 call.py:3 CALL: top make_local_etc_dir
2020-11-03 11:27:05.095536 call.py:3 CALL: top ob1.obmysql
2020-11-03 11:27:05.097506 call.py:3 CALL: top.ob1 sql
2020-11-03 11:27:05.099823 call.py:3 CALL: top.ob1 obs0.sql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 3221498692
Server version: 5.7.25 OceanBase 2.2.50 (r1-1c6441e8fb858c80da395f934f67ed305425864e) (Built Mar 6 2020 18:41:01)
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
OceanBase(root@oceanbase)>show databases;
+--------------------+
| Database |
+--------------------+
| oceanbase |
| information_schema |
| mysql |
| SYS |
| LBACSYS |
| ORAAUDITOR |
| test |
+--------------------+
7 rows in set (0.00 sec)
OceanBase(root@oceanbase)>
[End]