• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Problem with databse connection

Sleet

Member
Joined
Sep 3, 2016
Messages
109
Solutions
2
Reaction score
9
Hello guys, I have recently bought a Linux VPS and I almost got the server going on.

The problem is that this message appears when trying to open the server:

MYSQL ERROR: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (2002)

I have already looked everywhere and I couldn't find anything.
I have also installed XAMPP with mysql.

Are there any possible solutions?
 
Solution
If you are using your ip-address as host; your machine is not able to route back to port 3306 (mysql) since the ports are closed and due to myql's settings.
I'd suggest using localhost/127.0.0.1 instead, if what I asked turns out to be true.

Yours :)
 
Back
Top