-
Notifications
You must be signed in to change notification settings - Fork 814
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
MySQL Installation on Bash on Windows 10 #1332
Comments
Running build 14393, Just installed the same way as you and when from the command line I run |
@ashishchandra I tried this on 14971 and it seems to be working fine. I am able to get to the |
MySQL works for me on 15063 w/ Ubuntu 16.04! sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install mysql-server
# this skips all of the interactive menus, thereby
# creating a user `root` with empty password;
# you may not actually want to do this for
# your own setup, but I put it here for ease of duplication
mysql -u root # fails bc mysql service isn't running yet
sudo service mysql start
mysql -u root # works! |
I am getting the same error trying to install MySQL on Bash on Windows 10 (15063.0) Ubuntu 16.04.1. have tried both w/ and w/o interactive menus. Reading package lists... Done
dpkg: error processing package mysql-server (--configure): |
Get same error when I get update for mysql-server packages ubuntu 16.04.2 mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) while con dpkg: error processing package mysql-server (--configure): |
After updating Ubuntu from 14.02 to 16.02 via
|
To recover from this state you can run these commands (warning: this will remove mysql and any data associated with it, do a backup)
Sometime you just got to tear it all out and start over you know. |
@valeryan Thanks for the concise instructions. This got rid of the update errors. |
sudo rm -rf /etc/mysql /var/lib/mysql was key. |
Check the file file which makes error. Ex: dpkg --force-all -i mysql-server-core-5.7_5.7.23-0ubuntu0.18.04.1_amd64.deb |
If apt errors out, manually restart mysql and temporarily edit |
seems to work normally in wsl2, and had no issues in wsl 1 either. |
FWIW I had to completely remove mysql for it to start working again.
from here I also had to restore the mysql databases manually as described here |
If you can't install mysql on wsl, there is workaround here. mysql -u root -p --host=127.0.0.1 --port=3306 --protocol=TCP Don't use localhost instead, and port is 3306 on my pc. |
I had mariadb sources added, which caused trouble and none of the solutions above worked for me. |
Strange one. From way up-top in the OP, |
this repo works for me |
Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!
Trying to install MySQL on Bash on Windows 10 Creators Build (14959)
MySQL Installation
Your Windows build number
Steps / All commands required to reproduce the error from a brand new installation
Strace of the failing command
Required packages and commands to install
See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: