You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Starting with SQL Server 2019 CU3, Ubuntu 18.04 is supported.
36
+
34
37
In this quickstart, you use Docker to pull and run the SQL Server 2019 container image, [mssql-server](https://hub.docker.com/r/microsoft/mssql-server). Then connect with **sqlcmd** to create your first database and run queries.
35
38
36
39
> [!TIP]
37
40
> This quickstart creates SQL Server 2019 containers. If you prefer to create SQL Server 2017 containers, see the [SQL Server 2017 version of this article](quickstart-install-connect-docker.md?view=sql-server-linux-2017).
41
+
38
42
::: moniker-end
39
43
40
-
This image consists of SQL Server running on Linux based on Ubuntu 16.04. It can be used with the Docker Engine 1.8+ on Linux or on Docker for Mac/Windows. This quickstart specifically focuses on using the SQL Server on **linux** image. The Windows image is not covered, but you can learn more about it on the [mssql-server-windows-developer Docker Hub page](https://hub.docker.com/r/microsoft/mssql-server-windows-developer/).
44
+
This image consists of SQL Server running on Linux based on Ubuntu 18.04. It can be used with the Docker Engine 1.8+ on Linux or on Docker for Mac/Windows. This quickstart specifically focuses on using the SQL Server on **linux** image. The Windows image is not covered, but you can learn more about it on the [mssql-server-windows-developer Docker Hub page](https://hub.docker.com/r/microsoft/mssql-server-windows-developer/).
41
45
42
46
## <aid="requirements"></a> Prerequisites
43
47
@@ -178,19 +182,19 @@ Before starting the following steps, make sure that you have selected your prefe
@@ -243,7 +247,7 @@ Before starting the following steps, make sure that you have selected your prefe
243
247
|**-e "SA_PASSWORD=\<YourStrong@Passw0rd\>"**| Specify your own strong password that is at least 8 characters and meets the [SQL Server password requirements](../relational-databases/security/password-policy.md). Required setting for the SQL Server image. |
244
248
|**-p 1433:1433**| Map a TCP port on the host environment (first value) with a TCP port in the container (second value). In this example, SQL Server is listening on TCP 1433 in the container and this is exposed to the port, 1433, on the host. |
245
249
|**--name sql1**| Specify a custom name for the container rather than a randomly generated one. If you run more than one container, you cannot reuse this same name. |
246
-
|**mcr.microsoft.com/mssql/server:2019-GA-ubuntu-16.04**| The SQL Server 2019 Ubuntu Linux container image. |
250
+
|**mcr.microsoft.com/mssql/server:2019-CU3-ubuntu-18.04**| The SQL Server 2019 Ubuntu Linux container image. |
247
251
248
252
3. To view your Docker containers, use the `docker ps` command.
In this quickstart, you install SQL Server 2017 or SQL Server 2019 on Ubuntu 16.04. You then connect with **sqlcmd** to create your first database and run queries.
20
+
In this quickstart, you install SQL Server 2017 on Ubuntu 16.04. You then connect with **sqlcmd** to create your first database and run queries.
You must have a Ubuntu 16.04 machine with **at least 2 GB** of memory.
36
40
37
41
To install Ubuntu 16.04 on your own machine, go to [http://releases.ubuntu.com/xenial/](http://releases.ubuntu.com/xenial/). You can also create Ubuntu virtual machines in Azure. See [Create and Manage Linux VMs with the Azure CLI](https://docs.microsoft.com/azure/virtual-machines/linux/tutorial-manage-vm).
@@ -44,6 +48,22 @@ For other system requirements, see [System requirements for SQL Server on Linux]
44
48
> [!NOTE]
45
49
> Ubuntu 18.04 is not yet officially supported, but running SQL Server is possible with [modifications](https://blogs.msdn.microsoft.com/sql_server_team/installing-sql-server-2017-for-linux-on-ubuntu-18-04-lts/).
You must have a Ubuntu 18.04 machine with **at least 2 GB** of memory.
57
+
58
+
To install Ubuntu 18.04 on your own machine, go to [http://releases.ubuntu.com/xenial/](http://releases.ubuntu.com/xenial/). You can also create Ubuntu virtual machines in Azure. See [Create and Manage Linux VMs with the Azure CLI](https://docs.microsoft.com/azure/virtual-machines/linux/tutorial-manage-vm).
59
+
60
+
> [!NOTE]
61
+
> At this time, the [Windows Subsystem for Linux](https://msdn.microsoft.com/commandline/wsl/about) for Windows 10 is not supported as an installation target.
62
+
63
+
For other system requirements, see [System requirements for SQL Server on Linux](sql-server-linux-setup.md#system).
To create a database, you need to connect with a tool that can run Transact-SQL statements on the SQL Server. The following steps install the SQL Server command-line tools: [sqlcmd](../tools/sqlcmd-utility.md) and [bcp](../tools/bcp-utility.md).
153
177
154
178
Use the following steps to install the **mssql-tools** on Ubuntu.
@@ -194,4 +218,56 @@ Use the following steps to install the **mssql-tools** on Ubuntu.
To create a database, you need to connect with a tool that can run Transact-SQL statements on the SQL Server. The following steps install the SQL Server command-line tools: [sqlcmd](../tools/sqlcmd-utility.md) and [bcp](../tools/bcp-utility.md).
227
+
228
+
Use the following steps to install the **mssql-tools** on Ubuntu.
curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
240
+
```
241
+
242
+
1. Update the sources list and run the installation command with the unixODBC developer package.
243
+
244
+
```bash
245
+
sudo apt-get update
246
+
sudo apt-get install mssql-tools unixodbc-dev
247
+
```
248
+
249
+
> [!Note]
250
+
> To update to the latest version of **mssql-tools** run the following commands:
251
+
>```bash
252
+
> sudo apt-get update
253
+
> sudo apt-get install mssql-tools
254
+
>```
255
+
256
+
1. **Optional**: Add `/opt/mssql-tools/bin/` to your **PATH** environment variable in a bash shell.
257
+
258
+
To make **sqlcmd/bcp** accessible from the bash shell forlogin sessions, modify your **PATH**in the **~/.bash_profile** file with the following command:
To make **sqlcmd/bcp** accessible from the bash shell forinteractive/non-login sessions, modify the **PATH**in the **~/.bashrc** file with the following command:
Copy file name to clipboardExpand all lines: docs/linux/sql-server-linux-change-repo.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Configure Linux repositories for SQL Server 2017 and 2019
3
3
description: Check and configure source repositories for SQL Server 2019 and SQL Server 2017 on Linux. The source repository affects the version of SQL Server that is applied during installation and upgrade.
4
4
author: VanMSFT
5
5
ms.author: vanto
6
-
ms.date: 01/07/2020
6
+
ms.date: 03/12/2020
7
7
ms.topic: conceptual
8
8
ms.prod: sql
9
9
ms.technology: linux
@@ -154,8 +154,8 @@ If necessary, remove the old repository. Use one of the following commands based
0 commit comments