> For the complete documentation index, see [llms.txt](https://kythuat.dtechvn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kythuat.dtechvn.com/cai-dat-dtech/cai-dat-sql-loi.md).

# CÀI ĐẶT SQL LỖI

#### 1. Khởi tạo data thất bại

* Kiểm tra thư mục DataSql xem có tồn tại data vừa khởi tạo không. Vì nguyên tắc của phần mềm khi tạo data gồm 2 bước
  * B1: Tạo data
  * B2: Restore file backup vào data vừa khởi tạo
* Nếu data được khởi tạo: Nghĩa là bước 1 đã pass, bước 2 bị lỗi
  * Kiểm tra file backup ở đường dẫn sau có tồn tại không:&#x20;
    * ....\DCONFIG\SEP\DT
    * Kiểm tra file backup có tên: BackupTT88, BackupTT200, BackupTT133
    * Nếu không có, thì copy từ nơi khác sang. Sau đó, restore vào data đã được khởi tạo
  * Nếu có file, thì khả năng lúc restore sẽ lỗi
    * Phân quyền data full control
    * Phân quyền thư mục full control
    * Kiểm tra dung lượng ổ cứng làm việc
  * Không được thì kiểm tra lại log xem có ghi được nguyên nhân không
* Nếu data không được khởi tạo thì:
  * Thư mục bị đặt readonly
  * Thư mục không full quyền everyone
  * Ổ cứng bị đặt chế độ nén: Bỏ check ở mục 1&#x20;

    <figure><img src="/files/bDAZZRtQPzI8JqDfgHpy" alt="" width="270"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kythuat.dtechvn.com/cai-dat-dtech/cai-dat-sql-loi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
