<small id='L46dx'></small><noframes id='L46dx'>

      <bdo id='L46dx'></bdo><ul id='L46dx'></ul>

    <i id='L46dx'><tr id='L46dx'><dt id='L46dx'><q id='L46dx'><span id='L46dx'><b id='L46dx'><form id='L46dx'><ins id='L46dx'></ins><ul id='L46dx'></ul><sub id='L46dx'></sub></form><legend id='L46dx'></legend><bdo id='L46dx'><pre id='L46dx'><center id='L46dx'></center></pre></bdo></b><th id='L46dx'></th></span></q></dt></tr></i><div id='L46dx'><tfoot id='L46dx'></tfoot><dl id='L46dx'><fieldset id='L46dx'></fieldset></dl></div>
    <tfoot id='L46dx'></tfoot>
    1. <legend id='L46dx'><style id='L46dx'><dir id='L46dx'><q id='L46dx'></q></dir></style></legend>
      1. 从命令行访问mysql远程数据库

        Access mysql remote database from command line(从命令行访问mysql远程数据库)

        <small id='dxGBP'></small><noframes id='dxGBP'>

        <tfoot id='dxGBP'></tfoot>
          <i id='dxGBP'><tr id='dxGBP'><dt id='dxGBP'><q id='dxGBP'><span id='dxGBP'><b id='dxGBP'><form id='dxGBP'><ins id='dxGBP'></ins><ul id='dxGBP'></ul><sub id='dxGBP'></sub></form><legend id='dxGBP'></legend><bdo id='dxGBP'><pre id='dxGBP'><center id='dxGBP'></center></pre></bdo></b><th id='dxGBP'></th></span></q></dt></tr></i><div id='dxGBP'><tfoot id='dxGBP'></tfoot><dl id='dxGBP'><fieldset id='dxGBP'></fieldset></dl></div>
                • <bdo id='dxGBP'></bdo><ul id='dxGBP'></ul>
                    <tbody id='dxGBP'></tbody>

                  <legend id='dxGBP'><style id='dxGBP'><dir id='dxGBP'><q id='dxGBP'></q></dir></style></legend>

                  本文介绍了从命令行访问mysql远程数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一台带有 Rackspace 的服务器.我想从我的本地机器命令行访问数据库.

                  I have a server with Rackspace. I want to access the database from my local machine command line.

                  我尝试过:

                  mysql -u username -h my.application.com -ppassword
                  

                  但它给出了一个错误:

                  错误 2003 (HY000):

                  ERROR 2003 (HY000):

                  无法连接到my.application.com"上的 MySQL 服务器 (10061)

                  Can't connect to MySQL server on 'my.application.com' (10061)

                  导致此错误的原因以及如何连接到远程数据库?

                  What causes this error and how can I connect to the remote database?

                  推荐答案

                  要直接登录远程 mysql 控制台,请使用以下命令:

                  To directly login to a remote mysql console, use the below command:

                  mysql -u {username} -p'{password}' \
                      -h {remote server ip or name} -P {port} \
                      -D {DB name}
                  

                  例如

                  mysql -u root -p'root' \
                          -h 127.0.0.1 -P 3306 \
                          -D local
                  

                  -p 后没有空格,如 文档

                  它会通过切换到提到的数据库直接带你到mysql控制台.

                  It will take you to the mysql console directly by switching to the mentioned database.

                  这篇关于从命令行访问mysql远程数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)
                  • <bdo id='1o7qx'></bdo><ul id='1o7qx'></ul>
                    <tfoot id='1o7qx'></tfoot>
                  • <i id='1o7qx'><tr id='1o7qx'><dt id='1o7qx'><q id='1o7qx'><span id='1o7qx'><b id='1o7qx'><form id='1o7qx'><ins id='1o7qx'></ins><ul id='1o7qx'></ul><sub id='1o7qx'></sub></form><legend id='1o7qx'></legend><bdo id='1o7qx'><pre id='1o7qx'><center id='1o7qx'></center></pre></bdo></b><th id='1o7qx'></th></span></q></dt></tr></i><div id='1o7qx'><tfoot id='1o7qx'></tfoot><dl id='1o7qx'><fieldset id='1o7qx'></fieldset></dl></div>
                      <tbody id='1o7qx'></tbody>

                        <small id='1o7qx'></small><noframes id='1o7qx'>

                        <legend id='1o7qx'><style id='1o7qx'><dir id='1o7qx'><q id='1o7qx'></q></dir></style></legend>