Skip to content

Instantly share code, notes, and snippets.

@redneurocom
Created August 14, 2018 23:11
Show Gist options
  • Select an option

  • Save redneurocom/5a0535ea58c92401611c36f9ec2f2a15 to your computer and use it in GitHub Desktop.

Select an option

Save redneurocom/5a0535ea58c92401611c36f9ec2f2a15 to your computer and use it in GitHub Desktop.
innodb buffer size
SELECT (PagesData*PageSize)/POWER(1024,3) DataGB FROM
(SELECT variable_value PagesData
FROM information_schema.global_status
WHERE variable_name='Innodb_buffer_pool_pages_data') A,
(SELECT variable_value PageSize
FROM information_schema.global_status
WHERE variable_name='Innodb_page_size') B;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment