【问题标题】:how do i connect to mysql database in Linux server through windows machine我如何通过windows机器连接到Linux服务器中的mysql数据库
【发布时间】:2012-07-11 04:26:22
【问题描述】:

我在 Windows 中有一个 MYSQL,需要与 Linux 服务器中的 MYSQL 连接。但我想知道有没有办法在 Linux 服务器中连接 MYSQL,而无需在 Windows 中安装 MYSQL。

【问题讨论】:

  • 如果两台机器在同一个网络,你可以连接到MySQL服务器。

标签: mysql windows linux


【解决方案1】:
Follow the following instructions:
1. Open Terminal and type in : sudo apt-get install putty
2. Click Y on subsequent messages that appear and let the installation complete.
To use Putty, go to Menu > Internet > Putty SSH client

To connect to a remote server that supports ssh login , enter the host name or the IP address of the remote host, in case you need to frequently need to login to this server , save the session by naming it something nice.

If the connection is initiated for the first time or if the server hardware configuration has changed, you may see the message. This is to ensure that you are logging in only to the trusted server that you know and not something else.Accept that.

Finally, enter user name and password to login to the server remotely, if all goes well you will see the terminal on the remote end.

connect to mysql :
type mysql -u username -p password

【讨论】:

    【解决方案2】:

    您可以使用腻子软件。这是link to download.

    【讨论】:

      【解决方案3】:

      你可以使用putty来连接mysql。 连接字符串会是这样的

      mysql -uDBUSER -pDBPASSWORD DBNAME -hHOST-IP

      或者你也可以使用navicat或者sql yog软件远程连接linux系统上的mysql。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2015-05-27
        • 1970-01-01
        • 2014-06-10
        • 1970-01-01
        • 2015-08-22
        • 2011-04-01
        • 2016-02-15
        相关资源
        最近更新 更多