• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    mysqldump - is marked as crashed and should be repaired

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    5
    538
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      robertkwild
      last edited by robertkwild

      hi all,

      getting this error when trying to backup the fog database

      mysqldump: Couldn’t execute ‘show create table moduleStatusByHost’: Table ‘./fog/moduleStatusByHost’ is marked as crashed and should be repaired (145)

      this is the command im running in the script

      mysqldump -u root -p’password’ --allow-keywords -x fog > /images/backup/fogall/fogbackup.sql

      thanks,
      rob

      1 Reply Last reply Reply Quote 0
      • R
        robertkwild
        last edited by

        can i install php my admin on the fog server or will that mess it up?

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Sebastian Roth

          @robertkwild Search the forums or even the web for the “marked as crashed” error for some good help on this.

          You should be able to install phpmyadmin without breaking anything.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • R
            robertkwild
            last edited by robertkwild

            nice one thanks @Sebastian-Roth

            mysqlcheck -c fog moduleStatusByHost -u root -p
            Enter password:
            fog.moduleStatusByHost OK
            [root@lon-c-fog10 backup]# ls
            17072021.tar 18072021.tar
            [root@lon-c-fog10 backup]# /script/backup.sh
            [root@lon-c-fog10 backup]#

            1 Reply Last reply Reply Quote 0
            • R
              robertkwild
              last edited by

              https://www.stellarinfo.com/article/repair-mysql-database-table.php

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              138

              Online

              12.1k

              Users

              17.3k

              Topics

              155.4k

              Posts
              Copyright © 2012-2024 FOG Project