---
title: Cum verific dimensiunea unei baze de date MySQL în phpMyAdmin?
url: "https://www.hostx.ro/kb/cum-verific-dimensiunea-unei-baze-de-date-mysql-in-phpmyadmin/"
updated: "2026-08-06"
category: MySQL
---

# Cum verific dimensiunea unei baze de date MySQL în phpMyAdmin?

Este util să știi cât spațiu ocupă o bază de date — pentru a te încadra în limitele planului de găzduire sau pentru a identifica tabelele care cresc necontrolat.

### Metoda 1: dimensiunea per tabel

1. În phpMyAdmin, selectează baza de date din stânga.
2. În lista tabelelor, coloana **Size** arată dimensiunea fiecărui tabel. Click pe antetul coloanei pentru a le sorta descrescător și a vedea cele mai mari tabele.

### Metoda 2: dimensiunea totală (interogare SQL)

Din tab-ul **SQL**, rulează:

```
SELECT table_schema AS "Baza de date",
       ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "Dimensiune (MB)"
FROM information_schema.TABLES
WHERE table_schema = 'NUMELE_BAZEI'
GROUP BY table_schema;
```

### Metoda 3: toate bazele deodată

```
SELECT table_schema AS "Baza de date",
       ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "MB"
FROM information_schema.TABLES
GROUP BY table_schema
ORDER BY 2 DESC;
```

**Sfat:** dacă o bază crește mult, verifică tabelele de log/sesiuni și optimizează tabelele (Operations → Optimize table) pentru a recupera spațiul.
<template id="hostx-kb-related-holder"><section class="hostx-kb-related" aria-label="Articole similare"><h2 class="hostx-kb-related__title">Articole similare</h2><div class="hostx-kb-related__grid"><a class="hostx-kb-related__card" href="https://www.hostx.ro/kb/administrarea-bazelor-de-date-mysql-in-cpanel/"><span class="hostx-kb-related__ico"><svg aria-hidden="true" focusable="false"
  class="lucide lucide-file-text"
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
  <path d="M14 2v5a1 1 0 0 0 1 1h5" />
  <path d="M10 9H8" />
  <path d="M16 13H8" />
  <path d="M16 17H8" />
</svg></span><span class="hostx-kb-related__name">Administrarea bazelor de date MySQL în cPanel</span></a><a class="hostx-kb-related__card" href="https://www.hostx.ro/kb/ce-sunt-triggerele-mysql-si-cum-sa-le-folosesti/"><span class="hostx-kb-related__ico"><svg aria-hidden="true" focusable="false"
  class="lucide lucide-file-text"
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
  <path d="M14 2v5a1 1 0 0 0 1 1h5" />
  <path d="M10 9H8" />
  <path d="M16 13H8" />
  <path d="M16 17H8" />
</svg></span><span class="hostx-kb-related__name">Ce sunt trigger-ele MySQL și cum le folosesc?</span></a><a class="hostx-kb-related__card" href="https://www.hostx.ro/kb/cum-copiez-un-tabel-mysql-cu-phpmyadmin/"><span class="hostx-kb-related__ico"><svg aria-hidden="true" focusable="false"
  class="lucide lucide-file-text"
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
  <path d="M14 2v5a1 1 0 0 0 1 1h5" />
  <path d="M10 9H8" />
  <path d="M16 13H8" />
  <path d="M16 17H8" />
</svg></span><span class="hostx-kb-related__name">Cum copiez un tabel MySQL cu phpMyAdmin?</span></a><a class="hostx-kb-related__card" href="https://www.hostx.ro/kb/cum-creez-un-tabel-folosind-phpmyadmin/"><span class="hostx-kb-related__ico"><svg aria-hidden="true" focusable="false"
  class="lucide lucide-file-text"
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
  <path d="M14 2v5a1 1 0 0 0 1 1h5" />
  <path d="M10 9H8" />
  <path d="M16 13H8" />
  <path d="M16 17H8" />
</svg></span><span class="hostx-kb-related__name">Cum creez un tabel folosind phpMyAdmin?</span></a></div></section></template>