You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/linux/quickstart-install-connect-docker.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -326,19 +326,25 @@ Setting `-h` and `--name` to the same value is a good way to easily identify the
326
326
327
327
The **SA** account is a system administrator on the SQL Server instance that gets created during setup. After creating your SQL Server container, the `SA_PASSWORD` environment variable you specified is discoverable by running `echo $SA_PASSWORD` in the container. For security purposes, change your SA password.
328
328
329
+
::: zone pivot="cs1-bash"
329
330
1. Choose a strong password to use for the SA user.
330
331
331
-
1. Use `docker exec` to run **sqlcmd** to change the password using Transact-SQL. In the following example, replace the old password, `<YourStrong!Passw0rd>`, and the new password, `<YourNewStrong!Passw0rd>`, with your own password values.
332
+
1. Use `docker exec` to run **sqlcmd** to change the password using Transact-SQL. In the following example, the old and new passwords are read from user input.
-Q 'ALTER LOGIN SA WITH PASSWORD="<YourNewStrong@Passw0rd>"'
336
+
-S localhost -U SA \
337
+
-P "$(read -sp "Enter current SA password: ";echo"${REPLY}")" \
338
+
-Q "ALTER LOGIN SA WITH PASSWORD=\"$(read -sp "Enter new SA password: ";echo"${REPLY}")\""
339
+
338
340
```
339
341
::: zone-end
340
342
341
343
::: zone pivot="cs1-powershell"
344
+
1. Choose a strong password to use for the SA user.
345
+
346
+
1. In the following example, replace the old password, `<YourStrong@Passw0rd>`, and the new password, `<YourNewStrong@Passw0rd>`, with your own password values.
@@ -347,9 +353,13 @@ The **SA** account is a system administrator on the SQL Server instance that get
347
353
::: zone-end
348
354
349
355
::: zone pivot="cs1-cmd"
356
+
1. Choose a strong password to use for the SA user.
357
+
358
+
1. In the following example, replace the old password, `<YourStrong@Passw0rd>`, and the new password, `<YourNewStrong@Passw0rd>`, with your own password values.
0 commit comments