Pengwin icon indicating copy to clipboard operation
Pengwin copied to clipboard

lamp server: mysql error after installing it

Open aborruso opened this issue 5 years ago • 2 comments

Describe the bug

After installing LAMP and running mysql -u root -p (empty password), I have

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

image

To Reproduce

Simply open the shell and run mysql -u root -p

Expected behavior

To be able to work with mysql/mariadb

Basic Troubleshooting Checklist

[x] I have searched Google for the error message. [x] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled. [x] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues. [x] I have searched the Pengwin issues page: https://github.com/WhitewaterFoundry/Pengwin/issues. [ ] I have reset Pengwin: Settings->Apps->Apps & features->Pengwin->Advanced Options->Reset. [ ] I have disabled and re-enabled WSL in Windows Features. [ ] I have run Windows 10 updates and restarted.

Pengwin Version

Find: Settings->Apps->Apps & features->Pengwin->Advanced Options->Version.

Insert here: 20.8.3.0

Windows Build

Run 'systeminfo | findstr /C:"OS"' in Command Prompt and insert here: 10.0.19041 N/D build 19041

For help on retrieving: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#check-your-build-number

aborruso avatar Oct 04 '20 10:10 aborruso

Could it possible that after installing the service does not start and that it's necessary to run sudo service mysql start?

aborruso avatar Oct 04 '20 10:10 aborruso

Probably but I will check to be sure

crramirez avatar Oct 04 '20 18:10 crramirez