• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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 Apr 17, 2017, 3:38 PM

    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 Apr 17, 2017, 4:11 PM

      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
      • G
        george1421 Moderator
        last edited by Apr 17, 2017, 4:18 PM

        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 Apr 17, 2017, 4:32 PM Reply Quote 0
        • A
          atarone @george1421
          last edited by Apr 17, 2017, 4:32 PM

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

          1 Reply Last reply Reply Quote 0
          • A
            atarone @george1421
            last edited by Apr 17, 2017, 4:39 PM

            @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.

            G 1 Reply Last reply Apr 17, 2017, 5:13 PM Reply Quote 0
            • G
              george1421 Moderator @atarone
              last edited by Apr 17, 2017, 5:13 PM

              @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 Apr 19, 2017, 3:32 PM Reply Quote 0
              • W
                Wayne Workman
                last edited by Wayne Workman Apr 17, 2017, 6:49 PM Apr 18, 2017, 12:48 AM

                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 Apr 19, 2017, 3:32 PM

                  @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
                  1 / 1
                  • First post
                    6/8
                    Last post

                  159

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project