Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6155357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:25:19+00:00 2026-05-23T20:25:19+00:00

I have MySQL server with 500mb database running on a server with 8Gb of

  • 0

I have MySQL server with 500mb database running on a server with 8Gb of RAM. Are there any sensible tunings which will take all available memory (I mean about 80% of 8Gb)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:25:21+00:00Added an answer on May 23, 2026 at 8:25 pm

    It depends what you are tuning for. If you want to tune for InnoDB and or MyISAM, even in a low memory envitronment, you will need to scale formulas from this link –> https://dba.stackexchange.com/questions/1/what-are-the-main-differences-between-innodb-and-myisam/2194#2194

    Basically, you want 75% of RAM dedicated for InnoDB. If all MyISAM, measured recommendation from the formulas given in the link.

    UPDATE 2011-07-21 13:52 EDT

    Cut and Paste this Formula

    SELECT CONCAT(ROUND(KBS/POWER(1024,IF(PowerOfTwo<0,0,IF(PowerOfTwo>3,0,PowerOfTwo)))+0.49999),
    SUBSTR(‘ KMG’,IF(PowerOfTwo<0,0,IF(PowerOfTwo>3,0,PowerOfTwo))+1,1)) recommended_innodb_buffer_pool_size
    FROM (SELECT SUM(data_length+index_length) KBS FROM information_schema.tablesM
    WHERE engine=’InnoDB’) A,
    (SELECT 2 PowerOfTwo) B;

    It will output the InnoDB Buffer Pool Size for your given dataset.

    Cut and Paste This One as Well

    SELECT CONCAT(ROUND(KBS/POWER(1024,IF(PowerOfTwo<0,0,IF(PowerOfTwo>3,0,PowerOfTwo)))+0.4999),
    SUBSTR(‘ KMG’,IF(PowerOfTwo<0,0,IF(PowerOfTwo>3,0,PowerOfTwo))+1,1)) recommended_key_buffer_size
    FROM (SELECT LEAST(POWER(2,32),KBS1) KBS FROM
    (SELECT SUM(index_length) KBS1 FROM information_schema.tables
    WHERE engine=’MyISAM’ AND table_schema NOT IN (‘information_schema’,’mysql’)) AA
    ) A,(SELECT 2 PowerOfTwo) B;

    It will output the MyISAM Key Buffer Size for your given dataset.

    Please run both of these formulas. Keep in mind that MyISAM only caches index pages. InnoDB needs both data nad index pages cached. Probably the combined sizes of them both will be less than 500 MB.

    UPDATE 2011-07-21 14:54 EDT

    You may also want to tune per-DB Connection Settings

    I recommend tuning your max_connections

    You may also want to download mysqltuner.pl and run it on the DB server.

    wget mysqltuner.pl
    

    This perl script will tell if you have overconfigured for DB Connections or not as well the maximum RAM mysql expects to have. If the the percetage of installed RAM needed exceeds 80%, lower the per_connect DB settings (sort_buffer_size, read_buffer_size, join_buffer_size and so forth)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MySQL server running that will be queried regularly through a php
I will have multiple tables used by different projects on the same mySql server.
I have a mysql server which is occasionly returns the 'too many connections' error.
I have MySQL database server I need to update and retrieve data to/from MySQL
Suppose I have MySQL server running on one machine, a Microsoft SQL Server running
I have a mysql server running on linux system. i'm already running one c++
I have a MySQL instance running on a Debian server and I can connect
I have a MySQL server running with InnoDB disabled (for reasons of performance), with
I have my MySQL server running with 4 databases and innodb_data_file_path set to the
I have a mysql database I have downloaded from my online server and trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.