Install SQL sever on Ubuntu

Install SQL Server

To install the mssql-server Package on Ubuntu, follow these steps:
  1. Enter superuser mode.
    Copy
    bash
    sudo su
    
  2. Import the public repository GPG keys:
    Copy
    bash
    curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
    
  3. Register the Microsoft SQL Server Ubuntu repository:
    Copy
    bash
    curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list > /etc/apt/sources.list.d/mssql-server.list
    
  4. Exit superuser mode.
    Copy
    bash
    exit
    
  5. Run the following commands to install SQL Server:
    Copy
    bash
    sudo apt-get update
    sudo apt-get install -y mssql-server
    
  6. After the package installation finishes, run the configuration script and follow the prompts.
    Copy
    bash
    sudo /opt/mssql/bin/sqlservr-setup
    
  7. Once the configuration is done, verify that the service is running:
    Copy
    bash
    systemctl status mssql-server
    

Next steps

Comments

Popular Posts

How to pass hash in Postman

nginx: unrecognized service

Bootstrap Select Picker append add new item if search not exist

Reading Excel Sheets using "Roo" gem in ruby on rails

Add CORS to Nginx on AWS Elastic Beanstalk

Enable gzip compression on Elastic Beanstalk with nginx

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

Get video duration by URL in Ruby on Rails

site-enables nginx setting in ruby in rails