Skip to content

Instantly share code, notes, and snippets.

@antoniocampos
Last active January 27, 2023 12:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoniocampos/5f8f9e8388b572e022997c6c291aeff3 to your computer and use it in GitHub Desktop.
Save antoniocampos/5f8f9e8388b572e022997c6c291aeff3 to your computer and use it in GitHub Desktop.
Debian 10 install and configure Microsoft SQL Server 2019 and tools
apt install curl apt-transport-https gnupg
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/debian/10/prod.list | tee /etc/apt/sources.list.d/msprod.list
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | tee /etc/apt/sources.list.d/msprod.list
apt-get update
apt-get install -y mssql-server mssql-tools unixodbc-dev
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
source ~/.bashrc
/opt/mssql/bin/mssql-conf setup
# follow the steps!
# restart
systemctl restart mssql-server
# stop
systemctl stop mssql-server
#start
systemctl start mssql-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment