Khiezte 0 Posted April 3, 2022 Share Posted April 3, 2022 Hi Everyone! When i start my server with the cd /home/game/ && sh start.sh code the mysql is not starting and give me these errors: Quote mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsPUBLIC_IP: 192.168.2.109 interface em0 HOSTNAME: auth mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) cannot open direct sql connection to host: localhost user: mt2 db: common cannot start server while no common sql connected ^Cmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 seconds root@distraught:/home/game # mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsSuccess PLAYER mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsSuccess ACCOUNT mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsSuccess COMMON mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) failed, retrying in 5 secondsSuccess HOTBACKUP I’m relatively new and I’m just trying. I tried everything and nothing works, here's what i tried: https://www.metin2downloads.to/thread/24-fix-can-t-connect-to-local-mysql-server-through-socket-tmp-mysql-sock-2/ https://metin2.dev/topic/8494-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/ What do I use? Distraughts 12.1 vdi file and this server file. Link to comment Share on other sites More sharing options...
Contributor Solution TMP4 10984 Posted April 3, 2022 Contributor Solution Share Posted April 3, 2022 Did you installed the mysql server? Because that error message says the game-db can't connect to it. Check if it runs or not: service mysql-server status mysql.tar.gz is not the mysql server, it is just the mysql data. (And actually it is a bad approach to install the mysql data in that way but that's another story) pkg install mysql55-server 1 Link to comment Share on other sites More sharing options...
Khiezte 0 Posted April 3, 2022 Author Share Posted April 3, 2022 Thanks, now the mysql is working fine! Jövök eggyel Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now