Skip to content

Instantly share code, notes, and snippets.

@smuuf
Created November 25, 2020 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smuuf/b3441acad3937ab171c140318325474d to your computer and use it in GitHub Desktop.
Save smuuf/b3441acad3937ab171c140318325474d to your computer and use it in GitHub Desktop.
MariaDB 10.4 for WSL1 with sysVinit
# After installing MariaDB via apt, run this:
## Fix MySQL (MariaDB)
if [ ! -f "/etc/init.d/mysql" ]; then
sudo cp /usr/share/mysql/mysql.init /etc/init.d/mysql
sudo chmod a+x /etc/init.d/mysql
sudo service mysql restart
sudo mysql_secure_installation
sudo service mysql restart
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment