Skip to content

Commit 0fd6f32

Browse files
authored
Merge pull request #66 from rothja/installwork
Changes to setup topics
2 parents c91f1f5 + 64bba8c commit 0fd6f32

5 files changed

Lines changed: 125 additions & 42 deletions

docs/linux/sql-server-linux-release-notes.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description:
66
author: rothja
77
ms.author: jroth
88
manager: jhubbard
9-
ms.date: 10-25-2016
9+
ms.date: 10-27-2016
1010
ms.topic: article
1111
ms.prod: sql-non-specified
1212
ms.service:
@@ -31,7 +31,16 @@ ms.assetid:
3131

3232
The following release notes apply to SQL Server vNext CTP1 running on Linux.
3333

34+
## Supported operating systems
35+
36+
- Ubuntu 16.04LTS (EXT4 file system)
37+
- Red Hat Enterprise Linux 7.2: Workstation, Server and Desktop. (XFS or EXT4 file systems).
38+
- Docker Engine 1.8+ on Windows, Mac or Linux.
39+
- Less than 64 cores. Using 64 or more cores will cause an error.
40+
- Less than 32 GB of memory. If more than 32 GB of memory is available, only 32 GB will be used.
41+
3442
## Package details
43+
The following sections provide the Debian and RPM package details.
3544

3645
### Debian
3746

@@ -49,23 +58,16 @@ The following release notes apply to SQL Server vNext CTP1 running on Linux.
4958
- **Architecture**: x86_64
5059
- **Version**: 13.0.2990.31
5160

52-
## Package file locations
61+
### Package file locations
62+
The following table provide direct links to the Debian and RPM packages for SQL Server vNext.
63+
64+
> [!IMPORTANT]
65+
> These packages are not meant to be used in typical installation scenarios. For installation steps, see [Install SQL Server on Linux](sql-server-linux-setup.md).
5366
5467
| Distribution | Download |
5568
|-----|-----|
56-
| Red Hat Enterprise Linux 7.2 | [https://private-repo.microsoft.com/rhel7/mssql-private-preview/mssql-server-13.0.2990.31-12.x86_64.rpm](https://private-repo.microsoft.com/rhel7/mssql-private-preview/mssql-server-13.0.2990.31-12.x86_64.rpm) |
5769
| Ubuntu 16.04 | [https://private-repo.microsoft.com/ubuntu/mssql-private-preview/pool/main/m/mssql-server/mssql-server_13.0.2990-31-8_amd64.deb](https://private-repo.microsoft.com/ubuntu/mssql-private-preview/pool/main/m/mssql-server/mssql-server_13.0.2990-31-8_amd64.deb) |
58-
59-
## Supported operating systems
60-
61-
- Ubuntu 16.04LTS (EXT4 file system)
62-
- Red Hat Enterprise Linux 7.2: Workstation, Server and Desktop. (XFS or EXT4 file systems).
63-
- Docker Engine 1.8+ on Windows, Mac or Linux.
64-
- Less than 64 cores. Using 64 or more cores will cause an error.
65-
- Less than 32 GB of memory. If more than 32 GB of memory is available, only 32 GB will be used.
66-
67-
> [!NOTE]
68-
> Any file systems that are not specified in the previous list are not supported.
70+
| Red Hat Enterprise Linux 7.2 | [https://private-repo.microsoft.com/rhel7/mssql-private-preview/mssql-server-13.0.2990.31-12.x86_64.rpm](https://private-repo.microsoft.com/rhel7/mssql-private-preview/mssql-server-13.0.2990.31-12.x86_64.rpm) |
6971

7072
## Known issues
7173

docs/linux/sql-server-linux-setup-docker.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description:
66
author: rothja
77
ms.author: jroth
88
manager: jhubbard
9-
ms.date: 10-21-2016
9+
ms.date: 10-27-2016
1010
ms.topic: article
1111
ms.prod: sql-non-specified
1212
ms.service:
@@ -39,16 +39,16 @@ This topic explains how to pull and run the mssql-server Docker image. This imag
3939
4040
### Docker for Mac
4141
1. Click on the Docker logo on the top status bar.
42-
2. Select Preferences.
42+
2. Select **Preferences**.
4343
3. Move the memory indicator to 4GB or more.
44-
4. Click the restart button at the button of the screen.
44+
4. Click the **restart** button at the button of the screen.
4545

4646
### For Windows users:
4747
1. Right-click on the Docker icon from the task bar.
48-
2. Click Settings under that menu.
49-
3. Click on the Advanced Tab.
48+
2. Click **Settings** under that menu.
49+
3. Click on the **Advanced** Tab.
5050
4. Move the memory indicator to 4GB or more.
51-
5. Click the Apply button.
51+
5. Click the **Apply** button.
5252

5353
## Pull and run the Docker image
5454
1. Login to the preview Docker registry by using the credentials provided to you in the welcome email.
@@ -63,11 +63,13 @@ This topic explains how to pull and run the mssql-server Docker image. This imag
6363

6464
$ sudo docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=\<your_password_here\>" -p 1433:1433 -d private-repo.microsoft.com/mssql-private-preview/mssql-server:latest
6565

66-
4. To persist the data generated from your Docker container, you must map volume to the host machine. To do that, use the run command with the -v \<host_folder\>:/var/opt/mssql flag. This will allow the data to be restored between container executions.
66+
4. To persist the data generated from your Docker container, you must map volume to the host machine. To do that, use the run command with the **-v \<host_folder\>:/var/opt/mssql** flag. This will allow the data to be restored between container executions.
6767

6868
$ sudo docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=\<your_password_here\>" -p 1433:1433 -v \<host folder\>:/var/opt/mssql -d private-repo.microsoft.com/mssql-private-preview/mssql- server:latest
6969

70-
> [!NOTE]
71-
> The **ACCEPT_EULA** and **SA_PASSWORD** environment variables are required to run the image.
70+
> [!NOTE]
71+
> The **ACCEPT_EULA** and **SA_PASSWORD** environment variables are required to run the image.
7272
73-
## Next Steps
73+
## Next steps
74+
75+
After installing SQL Server on Linux, next see [how to connect to the server and run basic Transact-SQL queries](sql-server-linux-connect-and-query.md).

docs/linux/sql-server-linux-setup-red-hat.md

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description:
66
author: rothja
77
ms.author: jroth
88
manager: jhubbard
9-
ms.date: 10-18-2016
9+
ms.date: 10-27-2016
1010
ms.topic: article
1111
ms.prod: sql-non-specified
1212
ms.service:
@@ -36,6 +36,9 @@ First, install the mssql-server Package on RHEL.
3636

3737
$ sudo su
3838

39+
> [!IMPORTANT]
40+
> The following steps will change when we get ready to release. They will look something like this. There will be steps for importing the public keys and registering the repository before the apt-get update / apt-get install commands.
41+
3942
2. Download the configuration script and make it executable.
4043

4144
# curl -O https://private-repo.microsoft.com/tools/configure-mssql-repo-2.sh
@@ -77,9 +80,41 @@ After installation on Red Hat Enterprise Linux you will need to do the following
7780
$ sudo firewall-cmd --zone=public --add-port=1433/tcp --permanent
7881
$ sudo firewall-cmd --reload
7982

80-
## TODO
81-
Section for upgrade
82-
Section for installing tools
83+
## Install the tools
84+
The following steps installs the command-line tools, Microsoft ODBC drivers, and their dependencies. For the details on what gets installed, see [Command-line tools and ODBC drivers](sql-server-linux-setup.md#tools).
85+
86+
> [!IMPORTANT]
87+
> The following steps will change when we get ready to release.
88+
89+
1. Start a terminal session as root:
90+
91+
$ sudo su
92+
93+
2. Download an installation script for the SQL Server tools and ODBC drivers installation:
94+
95+
# wget https://gallery.technet.microsoft.com/ODBC-Driver-13-for-SQL- 8d067754/file/162203/1/install.sh
96+
97+
3. Run the installation script:
98+
99+
# sh install.sh
100+
101+
4. Once completed, exit the root mode.
102+
103+
# exit
104+
105+
If you are install these packages from the same Linux machine as your SQL Server installation, you can run a test by connecting to your local SQL Server instance (localhost) with your **SA** username and password:
106+
107+
$ sqlcmd -S localhost -U SA -P <password>
108+
109+
Type **exit** to return to the command-line.
110+
111+
To uninstall the tools, download the uninstall script and follow the same steps as described above:
112+
113+
$ sudo su
114+
# wget https://gallery.technet.microsoft.com/ODBC-Driver-13-Tools-e419eed1/file/153767/2/uninstall.sh
115+
# sh uninstall.sh
116+
# exit
83117

84118
## Next steps
85-
TBD
119+
After installation, connect to the SQL Server instance to create and manage databases. To get started, see [Connect and query SQL Server on Linux](sql-server-linux-connect-and-query.md).
120+

docs/linux/sql-server-linux-setup-ubuntu.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description:
66
author: rothja
77
ms.author: jroth
88
manager: jhubbard
9-
ms.date: 10-18-2016
9+
ms.date: 10-27-2016
1010
ms.topic: article
1111
ms.prod: sql-non-specified
1212
ms.service:
@@ -36,6 +36,9 @@ First, install the mssql-server Package on Ubuntu.
3636

3737
$ sudo su
3838

39+
> [!IMPORTANT]
40+
> The following steps will change when we get ready to release. They will look something like this. There will be steps for importing the public keys and registering the repository before the apt-get update / apt-get install commands.
41+
3942
2. Download the configuration script and make it executable.
4043

4144
# curl -O https://private-repo.microsoft.com/tools/configure-mssql-repo-2.sh
@@ -68,11 +71,40 @@ First, install the mssql-server Package on Ubuntu.
6871
## Verify the installation
6972
Use the following command to print the installed package name and version:
7073

71-
$ dpkg-query -W | grep mssql
74+
$ dpkg-query -W | grep mssql
75+
76+
## Install the tools
77+
The following steps installs the command-line tools, Microsoft ODBC drivers, and their dependencies. For the details on what gets installed, see [Command-line tools and ODBC drivers](sql-server-linux-setup.md#tools).
78+
79+
> [!NOTE]
80+
> If you install these packages from the same Linux machine as your SQL Server installation, you do NOT need to perform steps 1-2 which were done as part of the SQL Server installation.
81+
82+
> [!IMPORTANT]
83+
> The following steps will change when we get ready to release.
84+
85+
2. Download the configuration script and make it executable.
86+
87+
# curl -O https://private-repo.microsoft.com/tools/configure-mssql-repo-2.sh
88+
# sudo chmod a+x configure-mssql-repo-2.sh
89+
90+
3. Pass the unique URL provided for you in your invitation email as a parameter to the script. This URL is labeled as **“Package script configuration URL parameter”**:
91+
92+
# sudo ./configure-mssql-repo-2.sh <URL provided in email>
93+
94+
4. Add the private preview tools repository, and install the SQL Command Line Utilities with its dependencies by running the commands below.
95+
96+
echo "deb https://private-repo.microsoft.com/ubuntu/mssql-tools-private-preview mssql main" | sudo tee /etc/apt/sources.list.d/mssql-tools.list
97+
98+
5. Update the sources list and run the installation command:
99+
100+
$ sudo apt-get update
101+
$ sudo apt-get install mssql-tools
102+
103+
If you are install these packages from the same Linux machine as your SQL Server installation, you can run a test by connecting to your local SQL Server instance (localhost) with your **SA** username and password:
104+
105+
$ sqlcmd -S localhost -U SA -P <password>
72106

73-
## TODO
74-
Section for upgrade
75-
Section for installing tools
107+
Type **exit** to return to the command-line.
76108

77109
## Next steps
78-
TBD
110+
After installation, connect to the SQL Server instance to create and manage databases. To get started, see [Connect and query SQL Server on Linux](sql-server-linux-connect-and-query.md).

docs/linux/sql-server-linux-setup.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description:
66
author: rothja
77
ms.author: jroth
88
manager: jhubbard
9-
ms.date: 10-20-2016
9+
ms.date: 10-27-2016
1010
ms.topic: article
1111
ms.prod: sql-non-specified
1212
ms.service:
@@ -29,6 +29,12 @@ ms.assetid:
2929

3030
SQL Server vNext CTP1 is supported on several distribution of Linux. It is also available as a Docker image which can run on Docker for Linux, Windows, and Mac. The topics in this section provide tutorials and general guidance for installing SQL Server vNext CTP1 on Linux.
3131

32+
If you want to go straight to a setup tutorial, select your Linux distribution:
33+
> [!div class="op_single_selector"]
34+
- [Ubuntu](sql-server-linux-setup-ubuntu.md)
35+
- [Red Hat Enterprise Linux](sql-server-linux-setup-red-hat.md)
36+
- [Docker](sql-server-linux-setup-docker.md)
37+
3238
## Supported distributions
3339
SQL Server vNext CTP1 is supported on the following distributions:
3440

@@ -37,13 +43,19 @@ SQL Server vNext CTP1 is supported on the following distributions:
3743
| Red Hat Enterprise Linux | 7 |
3844
| Ubuntu | 16.04 |
3945

40-
It also has support for the Docker Engine running on any supported Linux distribution or Docker for Mac/Windows.
46+
It also has support for the Docker Engine 1.8+ running on any supported Linux distribution. In addition, you can use the latest version of Docker for Mac/Windows.
47+
48+
## <a id="tools"> </a> Command-line tools and ODBC drivers
49+
You can optionally install the SQL Server command-line tools. It also installs the Microsoft ODBC drivers and dependencies.
4150

42-
| Docker | Supported version |
51+
The following tools are installed:
52+
53+
| Tool | Description |
4354
|-----|-----|
44-
| Docker Engine (Linux) | 1.8+ |
45-
| Docker for Mac | Latest |
46-
| Docker for Windows | Latest |
55+
| [sqlcmd](https://msdn.microsoft.com/library/ms162773.aspx) | Run Transact-SQL queries or scripts on any SQL Server instance. |
56+
| [bcp](https://msdn.microsoft.com/library/ms162802.aspx) | Bulk copies data between an instance of Microsoft SQL Server and a data file in a user-specified format. |
57+
58+
For the specific steps for installing the tools, see the installation guides in the next section.
4759

4860
## Installation guides
4961

@@ -54,6 +66,6 @@ The following guides provide step-by-step installation guides for the supported
5466
- [Install SQL Server on Linux (Docker)](sql-server-linux-setup-docker.md)
5567

5668
## Next Steps
57-
After installing SQL Server on Linux, next see [how to connect to the server and run basic Transact-SQL queries](sql-server-linux-connect-and-query.md).
69+
After installation, connect to the SQL Server instance to create and manage databases. To get started, see [Connect and query SQL Server on Linux](sql-server-linux-connect-and-query.md).
5870

5971

0 commit comments

Comments
 (0)