문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| dbms:mssql:recovery:user [2016/09/23 09:22] – [백업파일 복구] starlits | dbms:mssql:recovery:user [2025/10/03 22:30] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 11: | 줄 11: | ||
| ^ Backup File | d: | ^ Backup File | d: | ||
| ^ Recovery Directory | d: | ^ Recovery Directory | d: | ||
| - | ^ Database Name | admindb | | + | ^ Database Name | **admindb** | |
| - | ^ Database User | db_manager | | + | ^ Database User | **db_manager** | |
| - | ^ Database Password | 12345a | | + | ^ Database Password | **12345a** | |
| 줄 23: | 줄 23: | ||
| -- Restoring the certificate, | -- Restoring the certificate, | ||
| CREATE CERTIFICATE TDECert | CREATE CERTIFICATE TDECert | ||
| - | FROM FILE = 'D:\cert\tde_cert.cert' | + | FROM FILE = 'D:\mssql_cert\tde_cert.cert' |
| WITH PRIVATE KEY ( | WITH PRIVATE KEY ( | ||
| - | FILE = N'D:\cert\admin_private.key', | + | FILE = N'D:\mssql_cert\admin_private.key', |
| DECRYPTION BY PASSWORD = ' | DECRYPTION BY PASSWORD = ' | ||
| ); | ); | ||
| + | GO | ||
| + | </ | ||
| + | |||
| + | ==== 복구 ==== | ||
| + | - HOWTO < | ||
| + | -- We have the correct certificate and we've also restored the | ||
| + | -- private key. Now everything should work. Finally! | ||
| + | restore DATABASE [admindb] | ||
| + | FROM disk= N' | ||
| + | WITH move ' | ||
| + | move ' | ||
| GO | GO | ||
| </ | </ | ||