Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

477
Vistas
WSL Connect to MySQL Server 8 on Windows Doesn't Work

MySQL Workbench and MySQL server 8 is installed in Windows. In my WSL2 prompt, I installed the MySQL 8 client. I want to connect to the MySQL server from WSL2.

When I try mysql -u root -p -h 127.0.0.1 I get

ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)

On WSL I have "mysql Ver 8.0.21-0ubuntu0.20.04.3 for Linux on x86_64 ((Ubuntu))" installed. If I just try mysql localhost I get

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

I believe this is because I don't have the MySQL server installed on WSL just in Windows. I had this working a few days ago but then I had a Windows auto-update and I could no longer connect.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Use windows local ip address instead of 127.0.0.1

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda