Install SQL sever on Ubuntu
Install SQL Server
To install the mssql-server Package on Ubuntu, follow these steps:
- Enter superuser mode.Copybash
sudo su
- Import the public repository GPG keys:Copybash
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
- Register the Microsoft SQL Server Ubuntu repository:Copybash
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list > /etc/apt/sources.list.d/mssql-server.list
- Exit superuser mode.Copybash
exit
- Run the following commands to install SQL Server:Copybash
sudo apt-get update sudo apt-get install -y mssql-server
- After the package installation finishes, run the configuration script and follow the prompts.Copybash
sudo /opt/mssql/bin/sqlservr-setup
- Once the configuration is done, verify that the service is running:Copybash
systemctl status mssql-server
Next steps
- If you already have SQL Server tools,.
Comments
Post a Comment