XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Backup, Server
    • Labels:
      None

      Description

      I cannot find this documented anywhere, possibly because it is not supported/possible.

      How do I rename a database in MariaDB?

      From my research, it appears that "RENAME DATABASE" was possible in MySQL for a few versions, but considered unsafe, so it was removed.
      I see other "hacky" ways of doing it, which involves moving tables, re-create triggers/views, rename files, etc...

      What is THE way to do it with MariaDB, or is there a well-tested tool that does it?

      Note - I understand that "mysqldump" can do the job, but it is not practicable for large databases.

      This might be related (but not duplicate) to MDEV-18329 and MDEV-18762.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            nunop Nuno
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: