Maximum number of tables

Discussion in 'MySQL' started by ingilizdili, Oct 10, 2010.

  1. #1
    Hello;
    Is there (or should there be) a limit to the number of tables created within a mysql database? Or is creating new databases for new tables more advisable in terms of data security? How do you usually choose to do it?
     
    ingilizdili, Oct 10, 2010 IP
  2. cDc

    cDc Peon

    Messages:
    127
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well i think the limits are really high, dependant on the number of files you can have on the operating system (for myisam). InnoDB is in the millions but dependant on table size. You'd be hard pushed to break any physical limits but as you say for purposes of administration and maintenance it usually makes sense IMO to split your databases logically, usually per application (but not always...). I have in some cases in the past used seperate databases for the same application mainly for performance reasons.
     
    cDc, Oct 11, 2010 IP
  3. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #3
    mastermunj, Oct 12, 2010 IP
  4. ingilizdili

    ingilizdili Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you very much for your replies. I wanted to make sure that I wasn't making a mistake by placing multiple tables in one database.
     
    ingilizdili, Oct 13, 2010 IP
  5. pkennedy5

    pkennedy5 Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You really shouldn't have that many tables, and fewer databases. 100 tables would probably be about max for a complex website. 10-30 should be your maximum, or you're doing something wrong.
     
    pkennedy5, Oct 14, 2010 IP