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 3997706
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:26:04+00:00 2026-05-20T07:26:04+00:00

I need to simulate sql by creating a wrapper over mysql(customer requirement :P), and

  • 0

I need to simulate sql by creating a wrapper over mysql(customer requirement :P), and hence my application requires to create/drop tables(and possibly databases) during runtime.

The frequency of such create/drop operations will not be very high. I’m not a database expert, but I believe that such operations could lead to some side-effects over long term.

Is it advisable to do go ahead with these creation/deletion of databases and what are the possible complications I can run into?

  • 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-20T07:26:05+00:00Added an answer on May 20, 2026 at 7:26 am

    This is only a problem under two scenarios

    SCENARIO #1

    For InnoDB tables, the innodb buffer pool should be optimally set to the sum of all data pags and index pages that make up InnoDB tables.

    Even worse can be that innodb_file_per_table is disabled (default)

    This will produce a file called /var/lib/mysql/ibdata1 which can grow and never shrink. This is true no matter how many times you drop and create databases.

    If one forgets to make the necessary changes in /etc/my.cnf, this could also expose innodb buffer pool to under-utilization until the data fills back up.

    Changes to make for InnoDB are straightforward.

    Run this query

    SELECT CONCAT(KeyBuf,’M’) BufferPoolSetting FROM (SELECT CEILING(SumInnoDB/POWER(1024,2)) KeyBuf FROM (SELECT SUM(data_length+index_length) SumInnoDB FROM information_schema.tables WHERE engine=’InnoDB’ and table_schema NOT IN (‘information_schema’,’mysql’)) A) AA;

    The output of this query should be used as the innodb_buffer_pool_size in /etc/my.cnf just before you drop all databases and create new ones.

    SCENARIO #2

    For MyISAM tables, the key buffer should be optimally set to the sum of all .MYI files.

    If one forgets to make the necessary changes in /etc/my.cnf, this could also expose MyISAM key cache (key buffer) to under-utilization until the data fills back up.

    Changes to make for MyISAM are straightforward.

    Run this query

    SELECT CONCAT(KeyBuf,’M’) KeyBufferSetting FROM (SELECT CEILING(SumIndexes/POWER(1024,2)) KeyBuf FROM (SELECT SUM(index_length) SumIndexes FROM information_schema.tables WHERE engine=’MyISAM’ and table_schema NOT IN (‘information_schema’,’mysql’)) A) AA;

    The output of this query should be used as the key_buffer_size in /etc/my.cnf just before you drop all databases and create new ones.

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

Sidebar

Related Questions

I am developing a Windows .NET application (WinForms) and I need to simulate a
I'm writing an application in which I need to simulate a textarea. The only
I am testing a messaging application that uses single sign-on(SSO). I need to simulate
I have started testing my UI using qUnit, so I need to simulate some
Scenario: over 1.5GB of text and csv files that I need to process mathematically.
How can I simulate very heavy database usage on Microsoft SQL Server 2005? For
I have a probability problem, which I need to simulate in a reasonable amount
I'm trying to simulate keyboard commands for a custom game controller application. Because I'll
Simulating Ocean Water: http://www.finelightvisualtechnology.com/docs/coursenotes2004.pdf I'm trying to simulate ocean and I need your help.
I am developing a C++ application used to simulate a real world scenario. Based

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.