Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windows subsystem install mysql server

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

like image 423
Антон Бурак Avatar asked Feb 22 '19 21:02

Антон Бурак


People also ask

Can you install MySQL on Windows Server?

The simplest and recommended method is to download MySQL Installer (for Windows) and let it install and configure a specific version of MySQL Server as follows: Download MySQL Installer from https://dev.mysql.com/downloads/installer/ and execute it.

How do you install MySQL on Windows using CMD?

To install MySQL Shell binaries: Unzip the content of the Zip file to the MySQL products directory, for example C:\Program Files\MySQL\ . To be able to start MySQL Shell from a command prompt add the bin directory C:\Program Files\MySQL\mysql-shell-1.0. 8-rc-windows-x86-64bit\bin to the PATH system variable.


2 Answers

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

like image 128
Noha Salah Avatar answered Oct 30 '22 22:10

Noha Salah


as mentioned a guy at github and it solved my problem The problem is with the script "/etc/profile.d/wsl-integration.sh". As a quick workaround insert the following line before the first line in "/etc/profile.d/wsl-integration.sh" (use sudo to edit the file):

# Check if we have HOME folder
if [ "${HOME}" = "/" ]; then
  return
fi

I mean before the line:

WSL_INTEGRATION_CACHE=$HOME/.cache/wslu/integration`
like image 37
Sina ___ Avatar answered Oct 31 '22 00:10

Sina ___