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

    Import Database to New Server

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    8
    1.9k
    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.
    • A
      atarone
      last edited by

      Server
      • FOG Version: 1.3.5
      • OS: Ubuntu 16.04 LTS

      I have been forced to migrate to a new server. I exported my database to the fogbackup.sql per the Wiki. Now when I try to import it using mysql -D fog -u root -p < backup_path.sql I get a lot of syntax errors. I have tried researching imports using mysql without any luck. Anyone here have any suggestions? Below is what I am trying and what the output is

      mysql -D fog -u root -p < /home/fogadmin/fogbackup.sql
      mysql: [Warning] Using a password on the command line interface can be insecure.
      ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘Usage: mysqldump [OPTIONS] database [tables]
      OR mysqldump [OPTIONS] --databa’ at line 1

      1 Reply Last reply Reply Quote 0
      • A
        atarone
        last edited by

        I found in the GUI that did exactly what I needed. Since I am now on a server with more storage than the old server how do I get the Web Console on the new server to see the new server’s larger storage capacity?

        Thanks,

        Anthony

        1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator
          last edited by

          What version did you upgrade from?

          The Web gui should see right away the current storage size. What do you get when you open a linux console prompt and key in df -h ?

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          A 2 Replies Last reply Reply Quote 0
          • A
            atarone @george1421
            last edited by

            @george1421 I get 8.3TB–which is what I would expect.

            1 Reply Last reply Reply Quote 0
            • A
              atarone @george1421
              last edited by

              @george1421 I realized my mistake. I had to change the IP Address of the storage group to the new IP of the new server. Sorry my bad on that one.

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @atarone
                last edited by

                @atarone solved then?? (just to keep things tidy).

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                A 1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman
                  last edited by Wayne Workman

                  This article covers every aspect of FOG Server migration: https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  1 Reply Last reply Reply Quote 0
                  • A
                    atarone @george1421
                    last edited by

                    @george1421 yes this has been solved. Sorry for the delay I have been out the last few days

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

                    252

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project