dexterxdlol 5 Report post Posted May 1 Hola hace dias me sale este error i lo estoy intentando arreglar pero no puedo haber si sabeis como arreglarlo. mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Quote Share this post Link to post Share on other sites
0 Pegasus 78 Report post Posted May 2 En 1/5/2022 a las 19:22, dexterxdlol dijo: Hola hace dias me sale este error i lo estoy intentando arreglar pero no puedo haber si sabeis como arreglarlo. mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Pon esto en el putty y revisa si tienes la mysql encendida cd / /usr/local/etc/rc.d/mysql-server status Si te sale que esta apagada pon cd / /usr/local/etc/rc.d/mysql-server start y pruebas Ahora si persiste el error prueba a cambiar la pass y reiniciar con estos comandos desde putty cd / /usr/local/etc/rc.d/mysql-server stop mysqld_safe --skip-grant-tables & mysql -u root use mysql; update user set password=PASSWORD("contraseña para tu navicat") where user='usuario para tu navicat'; FLUSH PRIVILEGES; quit /usr/local/etc/rc.d/mysql-server start 1 Surdu Cristian-Alexandru reacted to this Quote Share this post Link to post Share on other sites
0 dexterxdlol 5 Report post Posted May 5 me sale esto [email protected]:~ # cd / [email protected]:/ # /usr/local/etc/rc.d/mysql-server status /usr/local/etc/rc.d/mysql-server: Command not found. Quote Share this post Link to post Share on other sites
0 Pegasus 78 Report post Posted May 6 Revisa que tengas la MYSQL instalada Si no la tienes pon pkg install mysql56-server o pkg install mysql57-server Dependiendo de la version que precisen los files que estas montando Una vez instalada haces reboot Quote Share this post Link to post Share on other sites
Hola hace dias me sale este error i lo estoy intentando arreglar pero no puedo haber si sabeis como arreglarlo.
mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Share this post
Link to post
Share on other sites