windows subsystem install mysql server

空扰寡人 提交于 2020-02-24 00:39:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!