mysql - windows子系统安装mysql服务器

标签 mysql windows-10 windows-subsystem-for-linux

在 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

请帮忙

enter image description here

最佳答案

我在 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/

相关文章:

VS Code 中的 C\C++ 和适用于 Windows 的 Linux 子系统

php - 按 A-Z 顺序将名称从 sql 排序到类别

c# - 为 UWP 更改 Window.Current.SizeChanged 上的 GridViewItem.Width

c# - Windows 通用应用程序全屏按钮

Docker Ubuntu 选择了错误的目录

windows-subsystem-for-linux - ConEmu + WSL : Open new console in current tab directory

mysql错误: "subquery returns more than one row" but i need more than one row from subquery

MySQL:使用子查询返回 null 并出现错误

mysql - 重置 MySQL root 密码无效

python-3.x - 无法在 Windows 10 和 Python 3.7 上安装 dlib