LoginSignup
1
3

More than 5 years have passed since last update.

UbuntuにSQL Serverをインストールする

Last updated at Posted at 2017-09-18

前提条件

メモリが3.25 GB 以上である必要があります。

インストール

「端末」を起動します。

以下のコマンドを実行し、rootに切り替えます。
sudo su

以下のコマンドを実行し、リポジトリキーをインポートします。
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -

以下のコマンドを実行し、リポジトリーを登録します。
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list > /etc/apt/sources.list.d/mssql-server.list

以下のコマンドを実行し、rootからユーザーに戻ります。
exit

以下のコマンドを実行し、パッケージインデックスファイルを更新します。
sudo apt-get update

以下のコマンドを実行し、「SQL Server」 をインストールします。
sudo apt-get install -y mssql-server

以下のコマンドを実行し、初期設定を開始します。
sudo /opt/mssql/bin/sqlservr-setup

※エディションの選択では、今回はExpressを選択しました。

その後、Windows のSQL Server Management Studioから接続できることを確認しました。
UbuntuにSQLServer2017インストール後.PNG
インスタンス名は無しの状態でした。
OSはNT6.2なのでWindows 8として見えている?

参考:
SQL Server をインストールし、Ubuntu でデータベースを作成

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3