Solution to Forgetting SQL Server Password under Linux

#Problem generation After several days, when using SQL Server to connect to the virtual machine again, I suddenly forgot my password....... I can't log in anymore.

Solution

1. Stop the msSQL server service under Linux

Systemctl stop MSSQL server.

2. Reconfigure MSSQL server product services

input.

/opt/mssql/bin/mssql-conf setup

Select the devoper mode, 2
Simplified Chinese Configure Ciphers.