Jump to content
  • 0
dexterxdlol

AYUDA PORFAVOR

Question

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

3 answers to this question

Recommended Posts

  • 0
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
 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...