DEV Community

loading...

Discussion on: Setting up WSL 2 for Web Development

Collapse
bidipeppercrap profile image
Fransisco Wijaya

How can I start mysql automatically on WSL startup?

Thread Thread
hymanzhan profile image
Xucong ZHAN Author • Edited

I am afraid I don't have the best answer. The WSL distros aren't managed by systemd so normal ways of sudo systemctl enable xxx.service won't work. You can try adding sh -c "sudo service mysql start" at the end of .zshrc or .bashrc file.

Thread Thread
bidipeppercrap profile image