This topic describes errors related to database connection and the troubleshooting procedure.
Error: Got error: 2002
Error code
2002
Example
[admin@**** /home/admin]
$obclient -h10.10.10.1 -P2881 -uuser_name@tenant_name -p****** -A
mysql: Got error: 2002: "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)" when trying to connect
Troubleshooting procedure
Check whether the settings of parameters, such as the URL, port number, username, and password, used for connecting to OceanBase Database are correct.