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

    Error loading mysql backup

    Scheduled Pinned Locked Moved
    Q&A
    0
    4
    686
    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

      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
      • danD
        dan
        last edited by

        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

          Thank you, --hex-blob worked

          1 Reply Last reply Reply Quote 2
          • joshuaJ
            joshua
            last edited by

            @spfarran

            Glad you got it figured out!

            Thanks,
            Josh

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