stop gitlab before mysql optimizations, run checks

Update MySQL optimizations to reflect doing updates after GitLab has already been started back up.
Merge pull request #8066 from bbodenmiller/patch-18

[7.4 rc fix] [doc] stop gitlab before mysql optimizations, run checks