简体   繁体   中英

Create an mssql server on Ubuntu

Is there a way to create an mssql server on Linux? Maybe using the ODBC drivers ?

It was recently announced by Microsoft that there is now a version of SQL Server that can be installed on Linux. The announcement is below;

https://blogs.microsoft.com/blog/2016/03/07/announcing-sql-server-on-linux/

Just about a week ago (like one day after I asked this question) a public preview of sql server on linux became available. Wow X'D

Installation instructions are described Here .

...so in my case for Ubuntu:

curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

then

curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list | sudo tee /etc/apt/sources.list.d/mssql-server.list

and

sudo apt-get update
sudo apt-get install -y mssql-server

then run this to configure it

sudo /opt/mssql/bin/sqlservr-setup

and this is an extra command to check that everything's working okay

systemctl status mssql-server

...also it's almost unavoidable to install mssql-tools to work on the server (described here ):

curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

then

curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list

and

sudo apt-get update 
sudo apt-get install mssql-tools

I wish I could work on a gui though. There's DbVis but I can't get it to work .

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