---
title: "安装依赖软件 | OceanBase 文档中心"
description: 安装依赖软件 本页面为您介绍安装 MySQL 客户端和 netcat的操作步骤。 安装 MySQL 客户端 MySQL 客户端用于访问 OceanBase 数据库，您需在每台需要部署 OceanBase 的主机上都安装好 MySQL 客户端。 以 root 用户执行以下命令，安装 MySQL 客户端。 yum ins…
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*lJTmRZ61jSUAAAAAAAAAAAAADiGDAQ/original) 云平台 OCPV 3.3.0 社区版

# 安装依赖软件

更新时间：2023-07-28 15:40:52

[编辑](https://github.com/oceanbase/ocp-doc/edit/V3.3.0/zh-CN/300.ob-cloud-platform/1200.appendix/2100.install-a-backup-client.md)  

本页面为您介绍安装 MySQL 客户端和 netcat的操作步骤。

## 安装 MySQL 客户端

MySQL 客户端用于访问 OceanBase 数据库，您需在每台需要部署 OceanBase 的主机上都安装好 MySQL 客户端。

1. 以 root 用户执行以下命令，安装 MySQL 客户端。

   ```yum
   yum install mysql -y

   ```
 2. 执行如下命令连接服务端，测试客户端是否安装成功。

   ```sql
   mysql -h<HostIP> -u<UserName> -p<password> -P<Port>

   ```

## 安装 netcat

netcat 用于检查 obproxy 的状态，您需在每台需要部署 obproxy 的主机上安装 netcat。

1. 以 root 用户执行以下命令，安装 netcat。

   ```yaml
   yum install -y nc

   ```
 2. 执行如下命令检查安装成功。

   ```yaml
   nc -h

   ## output
   Ncat 6.40 ( http://nmap.org/ncat )
   Usage: ncat [options] [hostname] [port]

   Options taking a time assume seconds. Append 'ms' for milliseconds,
   's' for seconds, 'm' for minutes, or 'h' for hours (e.g. 500ms).
     -4                         Use IPv4 only
     -6                         Use IPv6 only
     -U, --unixsock             Use Unix domain sockets only
     -C, --crlf                 Use CRLF for EOL sequence
     -c, --sh-exec <command>    Executes the given command via /bin/sh
     -e, --exec <command>       Executes the given command
         --lua-exec <filename>  Executes the given Lua script
     -g hop1[,hop2,...]         Loose source routing hop points (8 max)
     -G <n>                     Loose source routing hop pointer (4, 8, 12, ...)
     -m, --max-conns <n>        Maximum <n> simultaneous connections
     -h, --help                 Display this help screen
     -d, --delay <time>         Wait between read/writes
     -o, --output <filename>    Dump session data to a file
     -x, --hex-dump <filename>  Dump session data as hex to a file
     -i, --idle-timeout <time>  Idle read/write timeout
     -p, --source-port port     Specify source port to use
     -s, --source addr          Specify source address to use (doesn't affect -l)
     -l, --listen               Bind and listen for incoming connections
     -k, --keep-open            Accept multiple connections in listen mode
     -n, --nodns                Do not resolve hostnames via DNS
     -t, --telnet               Answer Telnet negotiations
     -u, --udp                  Use UDP instead of default TCP
         --sctp                 Use SCTP instead of default TCP
     -v, --verbose              Set verbosity level (can be used several times)
     -w, --wait <time>          Connect timeout
         --append-output        Append rather than clobber specified output files
         --send-only            Only send data, ignoring received; quit on EOF
         --recv-only            Only receive data, never send anything
         --allow                Allow only given hosts to connect to Ncat
         --allowfile            A file of hosts allowed to connect to Ncat
         --deny                 Deny given hosts from connecting to Ncat
         --denyfile             A file of hosts denied from connecting to Ncat
         --broker               Enable Ncat's connection brokering mode
         --chat                 Start a simple Ncat chat server
         --proxy <addr[:port]>  Specify address of host to proxy through
         --proxy-type <type>    Specify proxy type ("http" or "socks4")
         --proxy-auth <auth>    Authenticate with HTTP or SOCKS proxy server
         --ssl                  Connect or listen with SSL
         --ssl-cert             Specify SSL certificate file (PEM) for listening
         --ssl-key              Specify SSL private key (PEM) for listening
         --ssl-verify           Verify trust and domain name of certificates
         --ssl-trustfile        PEM file containing trusted SSL certificates
         --version              Display Ncat's version information and exit

   See the ncat(1) manpage for full options, descriptions and usage examples

   ```

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
