0

I am moving a number of databases from a MySQL 5.1 RHEL6 server to a MariaDB 10.3 RHEL7 server. Do I need to run mysql_update after doing the dump/restore of each DB, or is that just for system tables being updated in-place (same server)? Of course I am not dumping system tables, but will dump the GRANTS and restore those. We do not use views or triggers, but do use stored procedures, so I will use --routines in the dump command (and --extended-insert=true --compact --skip-add-locks). The largest DB by far is about 10GB (12m records across 10 tables); most are under 500MB.

Any advice/warnings?

1 Answer 1

0

Recommend running mysql_upgrade once per server.

While you have taken steps to avoid some of the complexities of system tables, mysql_upgrade helps cover some of other automated fixes that pop up from time to time.

Overall the size of the database is quite small and worth testing up front.

Obviously running RHEL6 don't mind end of life products, but why not jump to RHEL8 as RHEL7 is EOL in about 2 months?

3
  • Thanks; I'm in a large corporate environment with controlled access to available repos; RHEL8 not available yet. RHEL7 is at least much later than RHEL6. Since we will be moving one DB at a time over months, can you run the update process on a per DB basis? Commented Jun 28, 2021 at 13:21
  • mysql_upgrade is idpotent, running subsequent times is harmess. As you are probably migrating subsequent (all) database in a logical mysqldump form then mysql_update isn't required as its written around ensuring in place update is correct.
    – danblack
    Commented Jun 29, 2021 at 9:55
  • Thanks, danblack! Commented Jul 1, 2021 at 13:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.