Check the Install toolchain guide for supported OS, GLIBC version requirement, and how to install the C++ toolchain.
Clone the source code to your development machine:
git clone https://github.com/oceanbase/seekdb.gitBuild OceanBase SeekDB from the source code in debug mode or release mode:
bash build.sh debug --init --makebash build.sh release --init --makeNow that you built the observer binary, you can deploy a SeekDB instance with the obd.sh utility:
./tools/deploy/obd.sh prepare -p /tmp/obtest
./tools/deploy/obd.sh deploy -c ./tools/deploy/single.yamlYou can check the mysql_port in ./tools/deploy/single.yaml file to see the listening port. Normally, if you deploy with the root user, the seekdb server will listen on port 10000, and the examples below are also based on this port.
You can use the official MySQL client to connect to SeekDB:
mysql -uroot -h127.0.0.1 -P10000Alternatively, you can use the obclient to connect to SeekDB:
./deps/3rd/u01/obclient/bin/obclient -h127.0.0.1 -P10000 -uroot -Doceanbase -AYou can run the following command to shut down the server and clean up the deployment, which prevents disk space consumption:
./tools/deploy/obd.sh destroy --rm -n single