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
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.
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.
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
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`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With