无法在Toad MySql中创建连接

时间:2012-08-04 07:13:57

标签: mysql connection toad

我无法创建与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."

由于

2 个答案:

答案 0 :(得分:0)

开始连接Mysql Server非常简单。

首先,当您尝试建立新连接时,您需要选择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)

之后,您可以建立连接。

答案 1 :(得分:0)

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

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

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

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

See Here