How to install MySQL 5.7 for Magento 2 to Ubuntu 18?

Step 1

Implement the Debian’s instructions: How to install MySQL 5.7 for Magento 2 on Debian 9 (Stretch)?

Step 2

How to fix non-root login to MySQL in Ubuntu?

Step 3

How to set a non-empty password to the root MySQL user in Ubuntu?

See also: