I finally managed to install mysql-server-5.7 and phpmyadmin. I got root permissions, can log in with it everywhere, etc. What I can't do is to get to the Users tab in phpmyadmin web panel. Clicking there does nothing, or maybe just refreshes page because warning from main page (different versions of php installed) disappears.
How to regain access to this panel?