简体   繁体   中英

How to install mssql in ubuntu 14.04

I want to install mssql with 2008/2012.Please suggest proper doc or steps to install.I have try to instaall from https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-ubuntu but it give me follwoing error -

/opt/mssql/bin/sqlservr: /usr/lib/x86_64-linux-gnu/libsss_nss_idmap.so.0: no version information available (required by /opt/mssql/bin/sqlservr)
Starting Microsoft SQL Server...
sudo: systemctl: command not found
Error starting Microsoft SQL Server.

while run command -

sudo /opt/mssql/bin/mssql-conf setup

you can't install mssql in ubuntu 14.04.. Docs clearly state supported versions

SQL Server vNext CTP 2.0 is supported on the following platforms:

在此处输入图片说明

Just to add ,I thought installing docker would support versions less than 16,but from docker file we could see below

Base OS layer: Latest Ubuntu LTS.
FROM ubuntu:16.04

which means it needs ubuntu:16.04 versions to be present

For a workaround, you can use run a Docker container ( microsoft/mssql-server-linux ), eg

docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=yourStrongPassword!" -p 1433:1433 microsoft/mssql-server-linux

Then connect to localhost:1433 with your SQL client.

不能这样,因为根据文档您必须具有16.04+ Ubuntu版本才能安装MSSQL。

It is not possible to instal sql server 2008 or 2012 on any non window platform. This feature came with 2016 or 2017.

https://www.microsoft.com/en-us/sql-server/sql-server-2017

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM