windows subsystem install mysql server

Антон Бурак picture Антон Бурак · Feb 22, 2019 · Viewed 8.9k times · Source

installing mysql-server on ubuntu 18.04 subsystem windows 10.

Cannot open /proc/net/unix: No such file or directory
Cannot stat file /proc/1/fd/5: Operation not permitted
Cannot stat file /proc/3/fd/7: Operation not permitted

help please

enter image description here

Answer

Noha Salah picture Noha Salah · Feb 21, 2020

I am using Ubuntu 18.04 under Windows 10 as a Subsystem, so You have to start off by adding repositories required by MariaDB by :

sudo apt-get install software-properties-common

Then update your installation by :

sudo apt update

Install MariaDB by :

sudo apt install mariadb-server

You’ll be prompted to set a root password and wait for the installation to continue. Issue the following command once installation is complete:

sudo service mysql start

That’s it and to check both your mysql and mariadb version try:

mysql --version