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

MYSQL Problem during Upgrade

Scheduled Pinned Locked Moved
FOG Problems
2
6
994
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.
  • I
    IHCRCDan
    last edited by Dec 7, 2020, 9:35 PM

    I am trying to upgrade to the latest stable version of FOG. I have downloaded the tarball and am running the installer. When it gets to setting the root password for MYSQL, it is failing with the message

    Failed!

    The installer was not able to run all the way to the end as something has caused it to fail. The following few lines are from the error log file which might help us figure out what’s wrong. Please add this information when reporting an error. As well you might want to take a look at the full error log in /root/fogproject-1.5.9/bin/error_logs/fog_error_1.5.9.log.

    msqladmin: [Warning] Using a password on the command line interface can be insecure. Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety. mysqladmin: Unable to change password; error: " ‘Cannot load from mysql.user. The table is probably corrupted’
    mysql: [Warning] Using a password on the command line interface can be insucre.
    Error 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)

    I 1 Reply Last reply Dec 8, 2020, 5:09 PM Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Dec 8, 2020, 6:34 AM

      @IHCRCDan Which Linux OS so you use? Probably you did a system upgrade moving to a new major version of the database and it did not so all the steps needed. Usually this kind of issue can be fixed using the command mysql_upgrade -u root -p --force and entering the DB root password. Restart the DB or your while server after this to make sure it loads the fixed tables. For more information search the web for the error “The table is probably corrupted”

      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
      • I
        IHCRCDan
        last edited by Dec 8, 2020, 1:33 PM

        We are on Ubuntu 18.04. I will give the MYSQL command a go and see what happens.

        1 Reply Last reply Reply Quote 0
        • I
          IHCRCDan
          last edited by Dec 8, 2020, 2:10 PM

          Performed the update you suggested and it did help, but I got a different error at the same point now.

          mysqladmin: unable to change password; error: 'Column count of mysql.user is wrong. expected 46, found 48. The table is probably corrupted."

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Sebastian Roth Dec 8, 2020, 8:17 AM Dec 8, 2020, 2:16 PM

            @ihcrcdan said in MYSQL Problem during Upgrade:

            Performed the update you suggested and it did help, but I got a different error at the same point now.

            Should have asked you to copy and paste the output you got from the mysql_upgrade command. This new error suggests the tables were not fully fixed. Please run the same mysql_upgrade command again (copy&paste the output here).

            Did you restart the server as I asked to do?

            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
            • I
              IHCRCDan @IHCRCDan
              last edited by Dec 8, 2020, 5:09 PM

              @ihcrcdan We eventually got it resolved. We had to remove 3 columns from the mysql.user table. Once that was done, I was able to update the password and the installer was able to complete. Just took us a while to find that information.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              1 / 1
              • First post
                4/6
                Last post

              128

              Online

              12.1k

              Users

              17.3k

              Topics

              155.3k

              Posts
              Copyright © 2012-2024 FOG Project