To build OceanBase from source code, you need to install the C++ toolchain in your development environment first. If the C++ toolchain is not installed yet, you can follow the instructions in this document for installation.
You 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 OceanBase server will listen on port 10000, and the examples below are also based on this port.
Connect
You can use the official MySQL client to connect to OceanBase:
1
mysql -uroot -h127.0.0.1-P10000
Alternatively, you can use the obclient to connect to OceanBase:
1
./deps/3rd/u01/obclient/bin/obclient -h127.0.0.1-P10000 -uroot -Doceanbase -A