简体   繁体   English

Mysql错误“由于目标计算机主动拒绝连接,因此无法建立连接。”

[英]Mysql error 'No connection could be made because the target machine actively refused it.'

So: I just bought an VPS and installed Ubuntu on it. 所以:我刚买了一个VPS并在上面安装了Ubuntu。 After I installed Ubuntu I installed MySQL and created a database. 安装Ubuntu之后,我安装了MySQL并创建了一个数据库。

Now: I want to connect XenForo to the mysql database but I'm getting the error 'No connection could be made because the target machine actively refused it.' 现在:我想将XenForo连接到mysql数据库,但出现错误“无法建立连接,因为目标计算机主动拒绝了它。”

Could anyone please help me with this. 谁能帮我这个忙。

Actively refused means, the host actually received your connection request, but denied it. 主动拒绝表示主机实际上收到了您的连接请求,但拒绝了。

Things to check/verify: 要检查/验证的事项:

  • Does the Service listen to TCP (not UDP) on the port used, usually 3306? 服务是否在通常使用3306的端口上侦听TCP(不是UDP)?
  • Is a firewall or proxy between your script and the database? 脚本和数据库之间是否有防火墙或代理?
  • Is your MySQL server accepting connections from "localhost" or "127.0.0.1" (compare with connection parameters in your script) 您的MySQL服务器是否接受来自“ localhost”或“ 127.0.0.1”的连接(与脚本中的连接参数进行比较)

Hope that helps :) 希望有帮助:)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法建立连接,因为目标机器主动拒绝它。 WordPress的 - No connection could be made because the target machine actively refused it. wordpress Mysql 无法连接,因为目标机器主动拒绝 - Mysql No connection could be made because the target machine actively refused it 无法建立连接,因为目标计算机主动拒绝了它的LARAVEL 4错误 - No connection could be made because the target machine actively refused it LARAVEL 4 error #2002-无法建立连接,因为目标计算机主动拒绝了该连接。 Wamp服务器 - #2002 - No connection could be made because the target machine actively refused it. Wamp Server 来自外部客户端的“无法建立连接,因为目标计算机主动拒绝了它。” - “No connection could be made because the target machine actively refused it.” from external client 驱动程序发生异常:SQLSTATE[HY000] [2002] 由于目标机器主动拒绝,无法建立连接。 - Symfony 中的错误 - An exception occurred in driver: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. - error in Symfony 当我启动 apache MySQL 服务器时,我收到错误“(HY000/2002):无法建立连接,因为目标机器主动拒绝了它。” - when I start apache MySQL server, I get error “ (HY000/2002): No connection could be made because the target machine actively refused it.” zend SMTP无法建立连接,因为目标计算机被主动拒绝 - zend SMTP No connection could be made because the target machine actively refused 由于目标机器主动拒绝连接,因此无法建立连接 - No connection could be made because the target machine actively refused it PHP Laravel:无法建立连接,因为目标机器主动拒绝它 - PHP Laravel: No connection could be made because the target machine actively refused it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM