Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Latest commit

 

History

History
97 lines (67 loc) · 1.97 KB

File metadata and controls

97 lines (67 loc) · 1.97 KB
title Install SQL Server on Red Hat Enterprise Linux - SQL Server vNext CTP1 | Microsoft Docs
description Describes how to install SQL Server vNext CTP1 on Red Hat Enterprise Linux 7.2.
author rothja
ms.author jroth
manager jhubbard
ms.date 11/15/2016
ms.topic article
ms.prod sql-linux
ms.technology database-engine
ms.assetid 92503f59-96dc-4f6a-b1b0-d135c43e935e

Install the tools

The following steps install the command-line tools, Microsoft ODBC drivers, and their dependencies. The mssql-tools package contains:

  • sqlcmd: Command-line query utility.
  • bcp: Bulk import-export utility.

Install tools on RHEL

  1. Enter superuser mode.

    sudo su
    
  2. Download the Microsoft Red Hat repository configuration file.

    curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/msprod.repo
  3. Exit superuser mode.

    exit
  4. Run the following commands to install mssql-tools.

    sudo yum install mssql-tools

Install tools on Ubuntu

  1. Enter superuser mode.

    sudo su
  2. Import the public repository GPG keys:

    curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
  3. Register the Microsoft Ubuntu repository:

    curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/msprod.list
  4. Exit superuser mode:

    exit
  5. Update the sources list and run the installation command:

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

Next steps

After installation, connect to the SQL Server instance to create and manage databases. To get started, see Connect and query SQL Server on Linux.