Skip to main content

Running out of Disk Space (MySQL growing!)

Comments

4 comments

  • cPanelMichael
    Hello, You check check the database size with a command such as:
    du -sh /var/lib/mysql/database_name/*
    This should help pinpoint which tables are taking up the most space. Thank you.
    0
  • Feemish
    OK thanks, I can see two large tables of errors. 473M /var/lib/mysql/database_name/smf_log_errors.MYD 83M /var/lib/mysql/database_name/smf_log_errors.MYI I presume these willbe ok to delete? How do I go about deleting them? Thanks
    0
  • cPanelMichael
    You should review your script's documentation or consult with their support to determine if it's acceptable to empty those tables. I also suggest backing up your database before attempting to empty those tables:
    mysqldump database_name > /path/to/database_backup.sql
    At that point, assuming you've verified it's okay to proceed, you can empty those tables through phpMyAdmin or the MySQL command line. Thank you.
    0
  • Feemish
    ok thanks!
    0

Please sign in to leave a comment.