Get the code, build and run
Prerequisites
Check the Install toolchain guide for supported OS, GLIBC version requirement, and how to install the C++ toolchain.
Clone
Clone the source code to your development machine:
Build
Build OceanBase from the source code in debug mode or release mode:
Debug mode
Release mode
Run
Now that you built the observer
binary, you can deploy an OceanBase instance with the obd.sh
utility:
./tools/deploy/obd.sh prepare -p /tmp/obtest
./tools/deploy/obd.sh deploy -c ./tools/deploy/single.yaml
This starts the OceanBase server listening on port 10000.
Connect
You can use the official MySQL client to connect to OceanBase:
Alternatively, you can use the obclient
to connect to OceanBase:
Shutdown
You can run the following command to shut down the server and clean up the deployment, which prevents disk consuming: