Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MYSQL远程连接Coda 2_Mysql_Connection_Xampp_Coda - Fatal编程技术网

MYSQL远程连接Coda 2

MYSQL远程连接Coda 2,mysql,connection,xampp,coda,Mysql,Connection,Xampp,Coda,我刚买了Coda2,我想试试mysql数据库连接的这个功能。我无法连接。出现的错误是: Unable to connect to host 1.2.3.4, or the request timed out. Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 0 seconds).

我刚买了Coda2,我想试试mysql数据库连接的这个功能。我无法连接。出现的错误是:

Unable to connect to host 1.2.3.4, or the request timed out.
Be sure that the address is correct and that you have the necessary privileges,
or try increasing the connection timeout (currently 0 seconds).

MySQL said: Can't connect to MySQL server on '1.2.3.4' (60)
出现错误需要60秒。对于简单的答案,我举个例子:

服务器IP:1.2.3.4

MYSQL用户名:root

MYSQL密码:1234root


我在windows服务器上使用xampp。如何远程连接到mysql数据库?关于权限,我为root用户使用的帐户具有所有权限。谢谢您,祝您假期愉快。

您需要将mysql服务器配置为允许远程访问root,这通常是一个非常糟糕的主意。远程访问已经够糟糕的了。您需要允许远程访问并授予根用户远程地址访问权限

这就是为什么人们通常安装phpMyAdmin之类的东西来获得这种访问。设置非root用户是另一种选择