
In this blog post, we will guide you through the process of installing Microsoft SQL Server (MSSQL) on a CentOS 8 Linux machine. By following these steps, you will be able to access your SQL Server from a Windows machine using the MSSQL Management Studio.
Before starting, ensure your CentOS 8 machine meets the following specifications:
$ sudo curl https://packages.microsoft.com/config/rhel/8/mssql-server-2019.repo -o /etc/yum.repos.d/mssql-server-2019.repo$ sudo curl https://packages.microsoft.com/config/rhel/8/prod.repo -o /etc/yum.repos.d/msprod.repo
$ sudo dnf -y install mssql-server
$ sudo /opt/mssql/bin/mssql-conf setup
$ systemctl status mssql-server.service$ systemctl is-enabled mssql-server.service
$ sudo /opt/mssql/bin/mssql-conf set network.tcpport 5201
$ sudo systemctl restart mssql-server
$ sudo firewall-cmd --zone=public --add-port=5201/tcp --permanent
$ sudo firewall-cmd --reload
{server ip}\SQLEXPRESS,5201
sa
{password set during setup}
In this tutorial, we have shown you how to install Microsoft SQL Server (MSSQL) on a CentOS 8 Linux machine. With these steps, you should be able to access your SQL Server from a Windows machine using the MSSQL Management Studio. This setup enables you to take advantage of the power and flexibility of SQL Server on a Linux platform.
To learn more about SQL Server on Linux and to explore its features, you can visit the following resources:
If you encounter any issues during the installation or connection process, you can refer to the following resources for help:
We’d love to hear your feedback on this tutorial! If you have any questions or suggestions for improvement, please don’t hesitate to reach out. You can leave a comment below, or you can contact us through the following channels:
We’ll do our best to address any questions or concerns you may have. We look forward to hearing from you and helping you make the most of Microsoft SQL Server on a CentOS 8 Linux machine!
Quick Links
Legal Stuff