问题
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
回答1:
For anyone running into this issue, Close and reopen WSL and then run sudo service mysql start sudo dpkg --configure -a it should complete.
回答2:
I don't know how many people had this issue but what worked for me was a combination of following the steps here:
https://github.com/FiveTechSoft/mod_harbour/wiki/Install-MySQL-server-on-Windows-10-bash
And making sure I change the Port of the MySQL server on WSL. I was running a MySQL server instance 3306 on windows and it was preventing the WSL instance from starting up.
You can just edit the config file:
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
And updating the port section to anything else you like.
Best of luck
回答3:
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
来源:https://stackoverflow.com/questions/54835516/windows-subsystem-install-mysql-server