• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Error loading mysql backup

Scheduled Pinned Locked Moved
Q&A
0
4
694
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.
  • S
    spfarran
    last edited by 25 May 2021, 09:17

    On a Fusionauth 1.27 instance, I'm generating a backup with mysqldump from mysql 8.0.21 as follows:

    mysqldump -u user --password=password --default-character-set=utf8mb4 --extended-insert fusionauth > fusionauth.sql
    

    I've also tried without extra parameters like extended-insert and the same is happening.

    When i load the backup i get this error

    23000][1062] Duplicate entry 'c\x1E\xCD\x9D\xEF\xBF\xBD@L\x13\xEF\xBF\xBDw\xEF\xBF' for key 'application_roles.PRIMARY'
    

    As I can see default roles created by Fusionauth(admin, theme_editor, etc) are which have repeated keys, at least it seems in binary(16);

    Is someone experiencing the same?

    Thanks 😉

    1 Reply Last reply Reply Quote 1
    • D
      dan
      last edited by 28 May 2021, 03:12

      I haven't seen that before.

      Does this happen in your customized version of FusionAuth (where you've added a few applications and users) or the default version?

      From looking at the mysqldump man page, maybe try --hex-blob ?

      You could try loading the schema from the .sql files ( https://fusionauth.io/direct-download/ ) and loading the data separately (that is, exporting with --no-create-info ). Again, that's a wild guess, not sure what the issue is, but some more investigation seems to make sense.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 2
      • S
        spfarran
        last edited by 31 May 2021, 09:38

        Thank you, --hex-blob worked

        1 Reply Last reply Reply Quote 2
        • J
          joshua
          last edited by 3 Jun 2021, 19:47

          @spfarran

          Glad you got it figured out!

          Thanks,
          Josh

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post