在 ubuntu 18.04 子系统 Windows 10 上安装 mysql-server。
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
请帮忙
最佳答案
我在 Windows 10 下使用 Ubuntu 18.04 作为子系统,因此您必须首先添加 MariaDB 所需的存储库:
sudo apt-get install software-properties-common
然后通过以下方式更新您的安装:
sudo apt update
通过以下方式安装 MariaDB:
sudo apt install mariadb-server
系统将提示您设置 root 密码并等待安装继续。安装完成后发出以下命令:
sudo service mysql start
就是这样,要检查你的 mysql 和 mariadb 版本,请尝试:
mysql --version
关于mysql - windows子系统安装mysql服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54835516/