ANALYZE TABLE analyzes and stores the key distribution for a table. تحليل الجدول يحلل والمخازن الرئيسية لتوزيع الجدول. The MySQL query optimizer is the magic inside MySQL that decides which keys, if any, to use to in the query. فان الخلية استفسار محسن السحريه داخل الخلية والتي تقرر ان مفاتيح ، ان وجدت ، الى استخدام لفي الطلب. ANALYZE helps query optimizer to make accurate decisions by detailed analysis of the data, unlike query optimizer which makes quick analysis. ويساعد تحليل استفسار محسن دقيقة لجعل القرارات التي تتخذها تحليلا مفصلا للبيانات ، خلافا للاستفسار محسن السريعه التي تجعل من التحليل.

The command to analyze all tables in a running database is: القيادة لتحليل كل الجداول في قاعدة البيانات هي على التوالي :
mysqlcheck -Aa -uroot -p mysqlcheck - ظ - ع - uroot

Provide the password when prompted. توفير كلمة السر عند السؤال.

You can add it to your daily / weekly cron job for optimum performance of the database. يمكنك اضافة الى انه اليوميه / الاسبوعيه cron وظيفة لتحسين الأداء من قاعدة البيانات. The password can be provided in command line too. كلمة السر لا يمكن ان يكون في سطر الاوامر ايضا.

During the analysis, the table is locked with a read lock for MyISAM and BDB. خلال التحليل ، هو الجدول مغلق مع قفل لقراءة myisam وbdb. ANALYZE works with MyISAM, BDB, and InnoDB tables. تحليل يعمل مع myisam ، bdb ، وinnodb الجداول.

Note: Running ANALYZE is equivalent to running myisamchk -a or myismachk –analyze . ملاحظه : ادارة وتحليل ما يعادل تشغيل myisamchk - أ - myismachk او تحليل.