Skip to main content

Database error

Comments

2 comments

  • SysSachin
    Your /var partition is 100% full and because of that MySQL service is done on the server. If you have free space on your another partition (/home) then you can move your MySQL directory to your /home partition 1. Take a full backup of your all database.
    mysqldump --all-databases | gzip > /home/alldatabases.sql.gz
    2. Disable MySQL service through WHM > Service Manager for MySQL and save the area, So that monitor service will not start MySQL service while moving MySQL directory to other partition 3. Stop MySQL service
    /etc/init.d/mysql stop
    4. Move your MySQL directory to /home and with following command.
    mkdir /home/var_mysql mv /var/lib/mysql /home/var_mysql chown -R mysql:mysql /home/var_mysql/mysql ln -s /home/var_mysql/mysql /var/lib/mysql /etc/init.d/mysql start
    5. Enable MySQL service through WHM > Service Manager
    0
  • cPanelMichael
    Hello, I recommend checking to see if there's anything in the /var partition you can remove before moving MySQL to another partition. The following document provides commands you can use to see what's taking up the space: How to Manage your Hard Drive Space - cPanel Knowledge Base - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.