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
You must have a RHEL 7.3, 7.4, 7.5, or 7.6 machine with **at least 2 GB** of memory.
47
-
48
-
::: moniker-end
49
-
50
38
To install Red Hat Enterprise Linux on your own machine, go to [https://access.redhat.com/products/red-hat-enterprise-linux/evaluation](https://access.redhat.com/products/red-hat-enterprise-linux/evaluation). You can also create RHEL 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), and use `--image RHEL` in the call to `az vm create`.
51
39
52
40
If you have previously installed a CTP or RC release of SQL Server, you must first remove the old repository before following these steps. For more information, see [Configure Linux repositories for SQL Server 2017 and 2019](sql-server-linux-change-repo.md).
@@ -58,12 +46,17 @@ For other system requirements, see [System requirements for SQL Server on Linux]
58
46
59
47
## <aid="install"></a>Install SQL Server
60
48
49
+
> [!NOTE]
50
+
> RHEL 8 is supported for SQL Server 2017 starting with CU20. The following commands for SQL Server 2017 points to the RHEL 8 repository. RHEL 8 does not come preinstalled with python2, which is required by SQL Server. For more information, see the following blog on installing python2 and configuring it as the default interpreter: https://www.redhat.com/en/blog/installing-microsoft-sql-server-red-hat-enterprise-linux-8-beta.
51
+
>
52
+
> If you are using RHEL 7, change the path below to `/rhel/7` instead of `/rhel/8`.
53
+
61
54
To configure SQL Server on RHEL, run the following commands in a terminal to install the **mssql-server** package:
62
55
63
56
1. Download the Microsoft SQL Server 2017 Red Hat repository configuration file:
## <aid="tools"></a>Install the SQL Server command-line tools
164
-
165
-
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).
166
-
167
-
1. Download the Microsoft Red Hat repository configuration file.
1. Run the following commands to install **mssql-tools** with the unixODBC developer package.
180
-
181
-
```bash
182
-
sudo yum install -y mssql-tools unixODBC-devel
183
-
```
184
-
185
-
1. For convenience, add `/opt/mssql-tools/bin/` to your **PATH** environment variable. This enables you to run the tools without specifying the full path. Run the following commands to modify the **PATH** for both login sessions and interactive/non-login sessions:
## <aid="tools"></a>Install the SQL Server command-line tools
199
154
200
155
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).
@@ -211,7 +166,7 @@ To create a database, you need to connect with a tool that can run Transact-SQL
1. Run the following commands to install **mssql-tools** with the unixODBC developer package.
169
+
1. Run the following commands to install **mssql-tools** with the unixODBC developer package. For more information, see [Install the Microsoft ODBC driver for SQL Server (Linux)](../connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server.md).
215
170
216
171
```bash
217
172
sudo yum install -y mssql-tools unixODBC-devel
@@ -225,6 +180,4 @@ To create a database, you need to connect with a tool that can run Transact-SQL
225
180
source~/.bashrc
226
181
```
227
182
228
-
::: moniker-end
229
-
230
183
[!INCLUDE [Connect, create, and query data](../includes/sql-linux-quickstart-connect-query.md)]
Copy file name to clipboardExpand all lines: docs/linux/quickstart-install-connect-suse.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: "SUSE: Install SQL Server on Linux"
3
3
description: This quickstart shows how to install SQL Server 2017 or SQL Server 2019 on SUSE Linux Enterprise Server and then create and query a database with sqlcmd.
4
4
author: VanMSFT
5
5
ms.author: vanto
6
-
ms.date: 11/04/2019
6
+
ms.date: 04/10/2020
7
7
ms.topic: conceptual
8
8
ms.prod: sql
9
9
ms.technology: linux
@@ -178,7 +178,7 @@ To create a database, you need to connect with a tool that can run Transact-SQL
178
178
sudo zypper --gpg-auto-import-keys refresh
179
179
```
180
180
181
-
1. Install **mssql-tools** with the unixODBC developer package.
181
+
1. Install **mssql-tools** with the unixODBC developer package. For more information, see [Install the Microsoft ODBC driver for SQL Server (Linux)](../connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server.md).
You must have a Ubuntu 16.04 machine with **at least 2 GB** of memory.
39
+
You must have an Ubuntu 16.04 or 18.04 machine with **at least 2 GB** of memory.
40
40
41
-
To install Ubuntu 16.04 on your own machine, go to <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).
41
+
To install Ubuntu 18.04 on your own machine, go to <http://releases.ubuntu.com/bionic/>. 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).
42
42
43
43
> [!NOTE]
44
44
> 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.
45
45
46
46
For other system requirements, see [System requirements for SQL Server on Linux](sql-server-linux-setup.md#system).
47
47
48
48
> [!NOTE]
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/).
49
+
> Ubuntu 18.04 is supported starting with SQL Server 2017 CU20. If you want to use the instructions on this article with Ubuntu 18.04, make sure you use the correct [repository path](sql-server-linux-change-repo.md), `18.04` instead of `16.04`.
50
+
>
51
+
> If you are running SQL Server on a lower version, the configuration 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.
58
+
You must have an Ubuntu 16.04 or 18.04 machine with **at least 2 GB** of memory.
57
59
58
60
To install Ubuntu 18.04 on your own machine, go to <http://releases.ubuntu.com/bionic/>. 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
61
@@ -69,6 +71,9 @@ For other system requirements, see [System requirements for SQL Server on Linux]
69
71
70
72
## <aid="install"></a>Install SQL Server
71
73
74
+
> [!NOTE]
75
+
> The following commands for SQL Server 2017 points to the Ubuntu 18.04 repository. If you are using Ubuntu 16.04, change the path below to `/ubuntu/16.04/` instead of `/ubuntu/18.04/`.
76
+
72
77
To configure SQL Server on Ubuntu, run the following commands in a terminal to install the **mssql-server** package.
73
78
74
79
1. Import the public repository GPG keys:
@@ -80,14 +85,14 @@ To configure SQL Server on Ubuntu, run the following commands in a terminal to i
80
85
2. Register the Microsoft SQL Server Ubuntu repository:
> If you want to install SQL Server 2019 , you must instead register the SQL Server 2019 repository. Use the following command for SQL Server 2019 installations:
3. Run the following commands to install SQL Server:
@@ -126,6 +131,9 @@ At this point, SQL Server is running on your Ubuntu machine and is ready to use!
126
131
127
132
## <aid="install"></a>Install SQL Server
128
133
134
+
> [!NOTE]
135
+
> The following commands for SQL Server 2019 points to the Ubuntu 18.04 repository. If you are using Ubuntu 16.04, change the path below to `/ubuntu/16.04/` instead of `/ubuntu/18.04/`.
136
+
129
137
To configure SQL Server on Ubuntu, run the following commands in a terminal to install the **mssql-server** package.
130
138
131
139
1. Import the public repository GPG keys:
@@ -170,59 +178,6 @@ At this point, SQL Server 2019 is running on your Ubuntu machine and is ready to
170
178
171
179
## <aid="tools"></a>Install the SQL Server command-line tools
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).
177
-
178
-
Use the following steps to install the **mssql-tools** on Ubuntu.
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
190
-
```
191
-
192
-
1. Update the sources list and run the installation command with the unixODBC developer package.
193
-
194
-
```bash
195
-
sudo apt-get update
196
-
sudo apt-get install mssql-tools unixodbc-dev
197
-
```
198
-
199
-
> [!Note]
200
-
> To update to the latest version of **mssql-tools** run the following commands:
201
-
> ```bash
202
-
> sudo apt-get update
203
-
> sudo apt-get install mssql-tools
204
-
>```
205
-
206
-
1. **Optional**: Add `/opt/mssql-tools/bin/` to your **PATH** environment variable in a bash shell.
207
-
208
-
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:
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
182
228
183
Use the following steps to install the **mssql-tools** on Ubuntu.
@@ -239,7 +194,7 @@ Use the following steps to install the **mssql-tools** on Ubuntu.
239
194
curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
240
195
```
241
196
242
-
1. Update the sources list and run the installation command with the unixODBC developer package.
197
+
1. Update the sources list and run the installation command with the unixODBC developer package. For more information, see [Install the Microsoft ODBC driver for SQL Server (Linux)](../connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server.md).
243
198
244
199
```bash
245
200
sudo apt-get update
@@ -268,6 +223,4 @@ Use the following steps to install the **mssql-tools** on Ubuntu.
268
223
source~/.bashrc
269
224
```
270
225
271
-
::: moniker-end
272
-
273
226
[!INCLUDE [Connect, create, and query data](../includes/sql-linux-quickstart-connect-query.md)]
Copy file name to clipboardExpand all lines: docs/linux/sql-server-linux-change-repo.md
+12-10Lines changed: 12 additions & 10 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: 03/12/2020
6
+
ms.date: 04/10/2020
7
7
ms.topic: conceptual
8
8
ms.prod: sql
9
9
ms.technology: linux
@@ -152,13 +152,13 @@ If necessary, remove the old repository. Use one of the following commands based
152
152
If necessary, remove the old repository. Use one of the following commands based on the type of previously configured repository.
153
153
154
154
> [!NOTE]
155
-
> Starting with SQL Server 2019 CU3, Ubuntu 18.04 is supported. If you are using Ubuntu 16.04, change the path below to `/ubuntu/16.04` instead of `/ubuntu/18.04`.
155
+
> Starting with SQL Server 2019 CU3 and SQL Server 2017 CU20, Ubuntu 18.04 is supported. If you are using Ubuntu 16.04, change the path below to `/ubuntu/16.04` instead of `/ubuntu/18.04`, and use the correct [distribution code name](https://releases.ubuntu.com/).
@@ -173,14 +173,16 @@ Configure the new repository to use for SQL Server installations and upgrades. U
173
173
> [!NOTE]
174
174
> The following commands for SQL Server 2019 points to the RHEL 8 repository. RHEL 8 does not come preinstalled with python2, which is required by SQL Server. For more information, see the following blog on installing python2 and configuring it as the default interpreter: https://www.redhat.com/en/blog/installing-microsoft-sql-server-red-hat-enterprise-linux-8-beta.
175
175
>
176
-
> If you are using RHEL 7, change the path below to `/rhel/7` instead of `/rhel/8`.
176
+
> Starting with SQL Server 2017 CU20, RHEL 8 is supported.
177
+
>
178
+
> If you are using RHEL 7 or RHEL 8, ensure the paths match `/rhel/7` or `/rhel/8`.
0 commit comments