How to Install MySQL 8.0 on Debian 9 / Debian 8

This tutorial has been written to help you install MySQL 8.0 on Debian 9 / Debian 8. This guide is for a fresh installation of MySQL 8.0 on Debian 9 / Debian 8. If you have an older version of MySQL Server (e.g 5.7), you’ll need to do an in-place upgrade or dump all data, upgrade packages and re-import all database data to MySQL 8.0.