Mar 24 2022 01:32 PM - edited Mar 25 2022 06:02 AM
Sql server 2019 Linux
Good afternoon people,
I have a difficult situation here to understand. Someone has had this problem and can help me!
I'm testing how sql server works on linux. An Ubuntu server 18.04 distribution. Test Sql Server is 2019.
I installed it as suggested by Microsoft. Until then everything working, the problem is the exchange of the port. See what a strange thing.
I broke my head two days trying to change the sql connection to port 220. Nothing working. I did a lot of research on various topics on the internet and switching ports seemed to be a very normal thing. Why my case doesn't work!
Ah, then comes the question. In desperation I changed the port to 1453 and it worked! There was a doubt why port 220 is functional when I am in a 100% Windows environment. I already took the test! Why doesn't it work on port 220 on Linux!
More desperate, I changed the port to 10 and 14 and it didn't work. I switched to ports with 2200 and 3300 and 1450 and etc and everything works!
Apparently sql is only accepting connections to ports with more than 4 digits. using 2 and 3 digit port numbers doesn't work at all. The desperation was so much, that he did the test in two installations and in two different machines!
Has anyone ever experienced this? Very strange. I'm not understanding anything!
Mar 25 2022 12:23 AM
@Cristiano705 , this is an English spoken forum, so please post your question/issue/error message in English or to a localized forum.
Olaf
Mar 25 2022 07:40 AM
Why doesn't it work on port 220 on Linux!
@Cristiano705 , has nothing directly to do with the OS.
One IP port can be used by one application at the same time.
Port 220 is default for IMAP, see List of TCP and UDP port numbers - Wikipedia
And so I simply guess, you installed on Linux a services using that IP port.
Olaf
Mar 25 2022 09:00 AM
Mar 27 2022 11:12 PM
Mar 28 2022 04:27 AM
Mar 28 2022 05:43 AM
Hi @Cristiano705 -- This is likely because ports below 1024 are known as well-known ports (IANA) and on Linux are considered privileged and require root-level privileges to run. This is by design. There are several methods for circumventing that restriction but is generally not recommended. Take care.
Mar 28 2022 10:28 AM
Mar 28 2022 10:48 PM
Mar 30 2022 06:17 AM
If someone has a windows installation of sql, running on a port below 1024, and is going to migrate to a sql server installation on Linux, you will have problems!
You will have to change all sql server connections or work on a firewall configuration to get around the problem.
Why does it lock in Linux, since in windows the port can be changed without problems!
Thanks.
Sorry for English! I'm using tractor.