Jump to content

Recommended Posts

Hello, I changed my server on 64 bit and once in 1-2 weeks I get an error and I must make a restore from a 32bit backup to mysql. Why do I get this and how can I resolve it?

Error: mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Your Mysql gets fucked due low space try keep the logs clean.

How to fix:

Reinstall Mysql = 25% chance to solve it and that pointing highter.

Reinstall OS

To avoid this kind of issues create a config file using:

# ee  /usr/local/etc/my.cnf

then add this: 

# The MySQL server configuration
[mysqld]
socket          = /tmp/mysql.sock

#Expire binary logs after 5 days:
expire_logs_days = 5

#Max size logs delete
max_binlog_size = 100M

 

 

Write:

ee /etc/rc.conf and checks to see whether mysql_enable="YES", If you do not enter this and reboot.

Now, if at the start you see the written Starting mysql are almost at the end.

If not, repeat the step above.

Enter your login data and type:

mysqld_safe start

then

rehash

 

 

 

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.