开发者社区 问答 正文

如何通过ecs服务器连接rds mysql数据库

我下载了mysql-community-client-5.6.42-2.sles12.x86_64.rpm安装包该权限为775
然后安装出现如下:
PM version 4.4.2.3
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm [-aKfgpWHqV] [-aKfgpWHqVcdilPs] [-aKfgpWHqVcdilPsaKfgpWHqV] [-aKfgpWHqVcdilPsaKfgpWHqV] [-aKfgpWHqVcdilPsaKfgpWHqV] [-aKfgpWHqVcdilPsaKfgpWHqVK] [-aKfgpWHqVcdilPsaKfgpWHqVK] [-aKfgpWHqVcdilPsaKfgpWHqVKi] [-aKfgpWHqVcdilPsaKfgpWHqVKiv] [-aKfgpWHqVcdilPsaKfgpWHqVKiv] [-aKfgpWHqVcdilPsaKfgpWHqVKiv?] [-a|--all] [-f|--file] [-g|--group]
        [-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid]
        [--specfile] [--triggeredby] [--whatrequires] [--whatprovides]
        [--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list]
        [-P|--patches] [--queryformat=QUERYFORMAT] [-s|--state] [--nomd5]
        [--nofiles] [--nodeps] [--noscript] [--comfollow] [--logical]
        [--nochdir] [--nostat] [--physical] [--seedot] [--xdev]
        [--whiteout] [--addsign] [-K|--checksig] [--delsign] [--import]
        [--resign] [--nodigest] [--nosignature] [--initdb] [--rebuilddb]
        [--aid] [--allfiles] [--allmatches] [--badreloc]
        [-e|--erase <package>+] [--excludedocs] [--excludepath=<path>]
        [--fileconflicts] [--force] [-F|--freshen <packagefile>+] [-h|--hash]
        [--ignorearch] [--ignoreos] [--ignoresize] [-i|--install] [--justdb]
        [--nodeps] [--nomd5] [--nocontexts] [--noorder] [--nosuggest]
        [--noscripts] [--notriggers] [--oldpackage] [--percent]
        [--prefix=<dir>] [--relocate=<old>=<new>] [--repackage]
        [--replacefiles] [--replacepkgs] [--test]
        [-U|--upgrade <packagefile>+] [--quiet] [-D|--define 'MACRO EXPR']
        [-E|--eval 'EXPR'] [--macros=<FILE:...>] [--nodigest] [--nosignature]
        [--rcfile=<FILE:...>] [-r|--root ROOT] [--querytags] [--showrc]
        [--quiet] [-v|--verbose] [--version] [-?|--help] [--usage]
        [--scripts] [--setperms] [--setugids] [--conflicts] [--obsoletes]
        [--provides] [--requires] [--suggests] [--recommends] [--enhances]
        [--supplements] [--basedon] [--info] [--changelog] [--xml]
        [--triggers] [--last] [--dupes] [--filesbypkg] [--fileclass]
        [--filecolor] [--filecontext] [--fscontext] [--recontext]
        [--fileprovide] [--filerequire] [--buildpolicy=<policy>]
        [--with=<option>] [--without=<option>]
然后我用find mysql which mysql 都提示找不到
用mysql -h -u -p -p提示
mysql command notfound

展开
收起
高效服务 2018-12-18 12:21:13 837 分享 版权
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    您好,或许没有成功安装mysql客户端。rpm的命令和例子请参考:https://segmentfault.com/a/1190000003048196
    2018-12-18 14:51:32
    赞同 展开评论