简体   繁体   中英

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. After I installed Ubuntu I installed MySQL and created a database.

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.'

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?
  • 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)

Hope that helps :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM