Upgrading SQL Server on Linux

I saw this week that there was a new CTP (v1.3) of SQL Server v.Next. I haven’t had a lot of time to work on the Linux version lately, but I thought I’d try and see how well the upgrade went.

There’s an install and upgrade page at Microsoft you can use, but on Ubuntu, things are easy. First, connect to your system and run this:

sudo apt-get update

That will download updated packages and get the system ready. you can see that I have a lot of stuff to update on this particular system.

2017-02-22 15_06_08-Ubuntu 64-bit SQL Server .210 - VMware Workstation

Once this completes, you just run

sudo apt-get install mssql-server

This will actually perform the install. That takes a minute, and in my case, I walked away, letting this run. When it finished. I tried to connect from a local machine, but got an error. So I ran this:

systemctl status mssql-server

This should give me the status, which was that things had stopped.

2017-02-22 15_07_39-Ubuntu 64-bit SQL Server .210 - VMware Workstation

OK, no problem. This starts the service.

systemctl start mssql-server

Once this completed, I could connect.

2017-02-22 15_08_26-Ubuntu 64-bit SQL Server .210 - VMware Workstation

I’ve done this a few times over the last year, but not since CTP 1.0, so I reminded myself of the process.

So far, in my testing, most everything I’ve done with the core database engine, all scripts, etc., seem to work. More and more work is being done, and I’m interested to see how this version progresses.

If you like Linux, maybe you want to give this a try.

About way0utwest

Editor, SQLServerCentral
This entry was posted in Blog and tagged , , . Bookmark the permalink.

1 Response to Upgrading SQL Server on Linux

  1. HNK JANSSEN says:

    Hi Steve,

    As allways a nice writeup, I have the urge to nitpicking here:
    – apt-get update gets you the packages.gz (zipfile with known current packages list)
    – apt-get upgrade gets you the packages and upgrades them
    – apt-get -f dist-upgrade gets you into windows11 when time comes
    – apt-get install gets you and installs it *and* its dependencies.
    – refer to the excellent docs[1] [2] of the universal operating system [3] that powers it all 😉

    remember apt has supercow powers!!
    Have a nice day!

    [1]: https://www.debian.org/doc/manuals/debian-handbook/sect.apt-get.en.html
    [2]: https://www.debian.org/doc/manuals/apt-guide/ch2.en.html
    [3]: http://www.debian.org

Comments are closed.