> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/ar/installation-setup/installation/alwajhh-alkhlfyh-lqaadh-albyanat/oracle-mysql.md).

# Oracle MySQL

باستخدام محرك تخزين MySQL يمكنك استخدام أي إعداد MySQL كخلفية ngSurvey الخاصة بك.&#x20;

## المتطلبات

لتثبيت ngSurvey على قاعدة بيانات MySQL ستحتاج إلى تلبية المتطلبات التالية

1. إصدار MySQL 8 أو أعلى.
2. يجب أن يكون لدى المستخدم المستخدم للاتصال بخادم MySQL امتيازات كافية لاستخدام قاعدة بيانات نظام MySQL لإنشاء قاعدة البيانات.&#x20;
3. إذا تم تمكين التسجيل الثنائي (binary logging) يجب ضبط المتغير log\_bin\_trust\_function\_creators على القيمة 1 إما في ملف إعدادات MySQL الخاص بك أو باستخدام الاستعلام التالي.\
   `SET GLOBAL log_bin_trust_function_creators = 1;`
4. إصدار MySQL على نظام Windows يتطلب تحميل جداول بيانات المنطقة الزمنية. يمكنك اتباع هذا [الدليل](https://www.raymondcamden.com/2012/02/27/How-to-add-MySQL-time-zone-tables-on-Windows) لتحميل بيانات المنطقة الزمنية على خادم MySQL الخاص بك في نظام Windows.

{% hint style="danger" %}
تتطلب ngSurvey أن يكون خادم MySQL مهيأً بجداول المنطقة الزمنية للنظام العاملة. إذا لم تكن تثبيت MySQL لديك مهيأً بالمنطقة الزمنية يمكنك إضافتها يدوياً <https://dev.mysql.com/doc/refman/8.4/en/mysql-tzinfo-to-sql.html>
{% endhint %}

## تكوين NGSurvey

لكي تقوم بتكوين ngSurvey للعمل مع MySQL تحتاج إلى إعداد متغيرات بيئية (environment variables) التالية.

{% hint style="info" %}
سيقوم NGSurvey تلقائياً بإنشاء أو تحديث قاعدة البيانات التي قمت بتحديدها في سلسلة الاتصال.&#x20;
{% endhint %}

* **`ConnectionStrings:NGSurveyDB`** تحتوي على سلسلة الاتصال بخادم MySQL الخاص بك.
* **`NGSurvey:StorageEngine`** يجب تعيينها إلى *MySQL*.

<img src="/files/6a03fe91d7051a1367b02abf7dafcde35e34c82d" alt="" data-size="original">

## فحص الصحة

بمجرد أن تقوم بتكوين إعدادات قاعدة البيانات يمكنك إعادة تشغيل خدمة الويب المستضيفة لـ ngSurvey. سيقوم NGSurvey تلقائياً بإعداد قاعدة البيانات بجميع الجداول المطلوبة.

يمكنك أيضاً التحقق مما إذا كان تثبيتك مضبوطاً بشكل صحيح باستخدام الرابط التالي:\
<https://yourrootsite/api/system/status>

## تحميل الملفات

إذا كنت تخطط لجمع ملفات من المستجيبين باستخدام إجابات رفع الملفات فتأكد من ضبط قيمة max\_allowed\_packet كبيرة في ملف تكوين ini الخاص بـ MySQL لأن هذا يحدد الحد الأقصى لحجم الملفات التي سيتم تخزينها في قاعدة بيانات MySQL الخاصة بك

```
[mysqld]
max_allowed_packet=512M

```


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.ngsurvey.com/ar/installation-setup/installation/alwajhh-alkhlfyh-lqaadh-albyanat/oracle-mysql.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
