【问题标题】:Can't create a connection in Toad MySql无法在 Toad MySql 中创建连接
【发布时间】:2012-08-04 07:13:56
【问题描述】:

我无法创建到 Toad MySQL 的简单连接。

在创建过程中:

Connection Type : TCP

User : My user name.

我不知道我应该在这里输入哪个用户名?当我安装它时,出现的用户名或我输入的用户名以便下载安装?

Password : Should i choose a password. 当我下载安装时,在安装过程中我不必选择密码。

DataBase: Does any meaning for lower cases or higher cases? 
Port : 3306
The error i got : "Unable to connect to any of the specified MySQL hosts."

谢谢

【问题讨论】:

    标签: mysql connection toad


    【解决方案1】:

    开始连接你的 MySQL 服务器很容易。

    首先,当您尝试建立新连接时,您需要选择 TCP。

    那么你需要填写这些详细信息:

    Host: The ip address of the Mysql server
    
    User: the username for mysql database
    
    Password: the password for mysql database
    
    Database: the name of the database
    
    Port : leave this as default (3306)
    

    之后你就可以建立连接了。

    【讨论】:

      【解决方案2】:

      更改 my.cnf 配置文件中的默认设置。

      您可以在以下位置找到该文件: /etc/mysql/my.cnf

      将 bind-address=127.0.0.1 更改为 bind-address=your_server_ip

      重启mysql服务器,然后尝试连接

      See Here

      【讨论】:

        猜你喜欢
        • 2015-06-03
        • 2019-02-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-09-11
        • 1970-01-01
        • 1970-01-01
        • 2014-07-30
        相关资源
        最近更新 更多