MySQL - 40,000 tables - PHPMyAdmin freezes - Alternative applications ???

Discussion in 'MySQL' started by Sir Tom, Apr 29, 2006.

  1. #1
    I have about 40,000 MySQL tables and I am trying to export about 20 of those tables. Everytime I try to access my database in phpmyadmin it eventually locks up.

    What are some alternative applications that support huge databases?

    Thanks in advance for any advice.
     
    Sir Tom, Apr 29, 2006 IP
  2. mushroom

    mushroom Peon

    Messages:
    369
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    phpMyAdmin should handle that

    But only if the "Resource Limits" are set high enough in the "/etc/php.ini" file.

    Ran in to that myself with one big table (700 x 500000) a while ago.
     
    mushroom, Apr 29, 2006 IP
  3. Momo

    Momo Peon

    Messages:
    965
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Momo, Apr 29, 2006 IP
  4. sadcox66

    sadcox66 Spirit Walker

    Messages:
    496
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There is an HTTP timeout set - that prevents phpMyAdmin working with large databases.

    You may want to try something like MySqlFront or software from EMS SQL that break up the SQL into Chunks.
     
    sadcox66, Apr 30, 2006 IP
  5. arnek

    arnek Active Member

    Messages:
    134
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    I think the reason why phpMyAdmin seems to lock up is because it tries to display all 40000 table names on the left panel, thus taking quite a long time to pass all those strings down the line and takes up alot of memory in IE/Firefox/whatever.

    If you have shell access(SSH) the best way of all would be to use the mysql client at the command line.
     
    arnek, Apr 30, 2006 IP
  6. TommyD

    TommyD Peon

    Messages:
    1,397
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    0
    #6
    TommyD, Apr 30, 2006 IP
  7. blueoceanwave

    blueoceanwave Peon

    Messages:
    210
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    why have so many tables in one DB?
     
    blueoceanwave, Apr 30, 2006 IP
  8. arnek

    arnek Active Member

    Messages:
    134
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #8
    The new tools like Administrator and MySQL query browser is quite cool, but still I feel Control Center is going to give the same problem as phpMyAdmin as it must retrieve the whole list of tables from the server, which is going to take a while.

    Also, if you run Control Center on your local machine and trying to connect to your server, most web servers, if shared hosting, does not give you access from outside.

    Tom, what server your running on, some more info would be helpful.
     
    arnek, Apr 30, 2006 IP
  9. TommyD

    TommyD Peon

    Messages:
    1,397
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I have a shared account too. Most people cannot access their accounts outside, because on the MySQL page for cPanel, there is ip address filter. You have to put in your current ip address, or a wildcard.

    hth,

    tom
     
    TommyD, Apr 30, 2006 IP
  10. arnek

    arnek Active Member

    Messages:
    134
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #10
    cool, and SirTom, what are you running on..?
     
    arnek, Apr 30, 2006 IP
  11. Edmunds

    Edmunds Peon

    Messages:
    136
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Errr, 40,000 tables? I would in your place go through your database design :\
     
    Edmunds, May 5, 2006 IP
  12. khasmoth

    khasmoth Well-Known Member

    Messages:
    1,211
    Likes Received:
    96
    Best Answers:
    0
    Trophy Points:
    165
    #12
    khasmoth, May 6, 2006 IP
  13. azn_romeo_4u

    azn_romeo_4u Peon

    Messages:
    590
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I recommend this as well...I was able to recently get my database, when phpadmin and doing via ssh didn't work.
     
    azn_romeo_4u, May 6, 2006 IP
  14. Owen

    Owen Peon

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Why not just do it on the SSH command line?

    mysqldump --databases DB1 DB2 DB3 -u root -p > filename.sql

    Easy! :)

    Owen
     
    Owen, May 6, 2006 IP