Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL2 can't connect local mysql server #5681

Closed
Ashubel opened this issue Jul 30, 2020 · 1 comment
Closed

WSL2 can't connect local mysql server #5681

Ashubel opened this issue Jul 30, 2020 · 1 comment

Comments

@Ashubel
Copy link

Ashubel commented Jul 30, 2020

Oops! My WSL2 with Kali, but can't connect to mysql, the error like this:
image

@therealkenc
Copy link
Collaborator

The install isn't clean partly because #573 and possibly elsewise absence systemd.

image

That's not causing service mariadb start to fail though. There is no /etc/init.d/mariadb and that unrecognized service is expected behavior (unrecognized 'cause not there). I took a look at my 20.04 Ubuntu Real Linux box and it doesn't have /etc/init.d/mariadb either. So this is probably going to be the situation for all modern-ish Debian derived distros. There is analogous mongodb case from a while back here and here.

Starting mariadb with systemctl is #1579. Some docker folks use a systemctl facsimile mentioned here. Or start it manually (how I'd roll). Or find (or write) an /etc/init.d script to start it slightly less manually. Or big hammer fire up systemd à la #994 and various blogs on the web.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants