{"id":9404,"date":"2026-06-02T07:02:54","date_gmt":"2026-06-02T05:02:54","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=9404"},"modified":"2026-06-02T07:02:55","modified_gmt":"2026-06-02T05:02:55","slug":"repararea-si-optimizarea-bazei-de-date-in-wordpress","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/repairing-and-optimizing-the-database-in-wordpress\/","title":{"rendered":"Repararea \u0219i optimizarea bazei de date \u00een WordPress"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">WordPress includes a built-in database repair and optimization tool that can be enabled manually. This is useful when database tables may be corrupted, inefficient, or causing performance issues.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/repairing-and-optimizing-the-database-in-wordpress\/#What_this_feature_does\" >What this feature does<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/repairing-and-optimizing-the-database-in-wordpress\/#How_to_enable_database_repair_mode\" >How to enable database repair mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/repairing-and-optimizing-the-database-in-wordpress\/#How_to_access_the_repair_tool\" >How to access the repair tool<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/repairing-and-optimizing-the-database-in-wordpress\/#Important_security_note\" >Important security note<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/repairing-and-optimizing-the-database-in-wordpress\/#After_completing_repair\" >After completing repair<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/repairing-and-optimizing-the-database-in-wordpress\/#Practical_implications\" >Practical implications<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/repairing-and-optimizing-the-database-in-wordpress\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_this_feature_does\"><\/span>What this feature does<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The repair tool can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>check database tables for errors<\/li>\n\n\n\n<li>repair damaged tables<\/li>\n\n\n\n<li>optimize table structure for better performance<\/li>\n<\/ul>\n\n\n\n<\/div>\n\n<div id=\"mybox-2225796249\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">It is a built-in WordPress maintenance feature and does not require phpMyAdmin access.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_enable_database_repair_mode\"><\/span>How to enable database repair mode<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To activate the tool, add the following line to your <code>wp-config.php<\/code> file in the main WordPress directory (usually <code>\/public_html\/<\/code>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_ALLOW_REPAIR', true );<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_access_the_repair_tool\"><\/span>How to access the repair tool<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After saving the file, open the following URL in your browser:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;your-domain.com\/wp-admin\/maint\/repair.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You will see two options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Repair database<\/li>\n\n\n\n<li>Repair and optimize database<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can choose the appropriate action depending on the issue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Important_security_note\"><\/span>Important security note<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This feature does not require login access.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For this reason:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>it should only be enabled temporarily<\/li>\n\n\n\n<li>it should be removed immediately after use<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Leaving it active means anyone can access the repair page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"After_completing_repair\"><\/span>After completing repair<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once the process is finished:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>remove the line from <code>wp-config.php<\/code><\/li>\n\n\n\n<li>ensure the repair URL is no longer accessible<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Practical_implications\"><\/span>Practical implications<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This tool is useful for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>fixing slow or unstable WordPress databases<\/li>\n\n\n\n<li>resolving table corruption issues<\/li>\n\n\n\n<li>performing quick optimizations without external tools<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">However, it should be used carefully and only when needed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress allows database repair and optimization by enabling a configuration flag in <code>wp-config.php<\/code>, after which a special maintenance page can be used to fix or optimize database tables, and the feature should be disabled immediately after use for security reasons.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[9],"manual_kb_tag":[2147,2155,4804,5501,5502,5503,5504,5505,5506,5507],"class_list":["post-9404","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-databases","manual_kb_tag-database-optimization","manual_kb_tag-table-optimization","manual_kb_tag-database-maintenance","manual_kb_tag-wordpress-database-repair","manual_kb_tag-repair-and-optimize-database","manual_kb_tag-table-repair","manual_kb_tag-database-corruption","manual_kb_tag-repair-tool","manual_kb_tag-wordpress-configuration-file","manual_kb_tag-maintenance-page"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9404\/revisions"}],"predecessor-version":[{"id":9405,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9404\/revisions\/9405"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=9404"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=9404"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=9404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}