我刚下载并安装了Microsoft SQL Server到我的WSL环境中。我跑sudo /opt/mssql/bin/mssql-conf setup
时一切顺利。我被提示安装版本(例如开发人员),安装语言和管理员密码。当提示确认时,会发生这种情况:
Enter the SQL Server system administrator password:
Confirm the SQL Server system administrator password:
Configuring SQL Server...
This program has encountered a fatal error and cannot continue running.
The following diagnostic information is available:
Reason: 0x00000003
Message: fd != -1
Stacktrace: 00007fda0c625833 00007fda0bfe76ba 00007fda095e682d
Process: 397 - sqlservr
Thread: 398
Instance Id: 211a9fac-1061-47f2-8548-ab92a985561c
Crash Id: e0ebf051-c561-4c3e-9162-e4fdf862b85f
Build stamp: 33abe47c18f6a90a4d4f4d452a4549c8fd970e1c89a3d9170ba3b0292bc485a5
Multiple crashes have occurred
This program has encountered a fatal error and cannot continue running.
The following diagnostic information is available:
Reason: 0x00000003
Message: fd != -1
Stacktrace: 00007fda0c625a0c 00007fda0bfe76ba 00007fda095e682d
Process: 399 - sqlservr
Thread: 401
Instance Id: 211a9fac-1061-47f2-8548-ab92a985561c
Crash Id: e0ebf051-c561-4c3e-9162-e4fdf862b85f
Build stamp: 33abe47c18f6a90a4d4f4d452a4549c8fd970e1c89a3d9170ba3b0292bc485a5
*********** PANIC CORE DUMP GENERATION FAILED **********
Attempt to launch handle-crash.sh failed with error 0x0000000C
/opt/mssql/lib/mssql-conf/invokesqlservr.sh: line 15: 396 Aborted (core dumped) sudo -EH -u mssql /bin/bash -c "$CMDLINE"
Failed to connect to bus: No such file or directory
Attempting to start the Microsoft SQL Server service failed.
因此安装配置失败(每次)并且服务不会运行。 还有其他人遇到过这个问题吗?谷歌几乎没有关于此事的消息,这就是我尝试SO的原因。
答案 0 :(得分:1)
目前,不支持Windows for Linux for Windows 10子系统作为MSSQL-Server的安装目标。
来源: https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu