Get the App
SLTechnology News&Howtos  ›  Database  › 

SQLserver2017 installed on Linux system forgot SA password

Shulou Source: shulou.com Published: 2022-06-01 18:52:38 10月01日 Update

Operating system version: ubuntu16.04

Database version: SQLserver 2017

Due to the need of the company's business to temporarily map the internal network database to the public network through the router port, in a short period of one hour, the password of the SA was changed by an unknown organization, resulting in an abnormal accident.

When an exception is found, the database is removed from the public network as soon as possible, and the SA password is attempted to recover. Baidu many places are mostly windows systems through local login to change the sa password, can not find the linux system to reset the SA password method, and finally think of the installation of the database when there is a step to set the SA password, check the installation documents, done.

Now list the operation steps, in fact, just one step, hoping to help those of you who encounter the same problem

Ubuntu@ubuntu:~$ sudo / opt/mssql/bin/mssql-conf setup

Select the installed version and enter the password for sa.

After performing the above operation, check the database and find that the data is not abnormal, it should be found in time and the database will be removed from the external network as soon as possible. * personnel have not yet had time to do anything else. But he also broke out in a cold sweat.

Tags: Data password database system version operating system all-in-one business accident personnel company cold sweat place hour not yet document method time time step Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Linux MariaDB OPPO Reno Shulou Technology