ubuntu upgrade mysql 5.7 to 8 code example Example: change mysql version to 5.7 in ubuntu sudo apt install linuxbrew-wrapper brew install mysql@5.7