Skip to content

MySQL

Taille des bases

SELECT
  TABLE_NAME AS `Table`,
  ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS `Size (MB)`
FROM
  information_schema.TABLES
WHERE
  TABLE_SCHEMA = "bibpatnum_omeka"
ORDER BY
  (DATA_LENGTH + INDEX_LENGTH)
DESC;

Liste des permissions

De manière globale

select * from information_schema.user_privileges;

Par user

show grants for 'user'@'%';