For any reason, you may have forgotten MySQL root password and need to reset it. You can reset it if you have access to the server and a user having sudo privileges. Follow this simple guide and know how to reset MySQL root user password in Ubuntu.
In this guide, we use Ubuntu version 18.10. It should work with any modern Linux distribution like Ubuntu 18.04 and CentOS 7.Read More “How to Reset MySQL Root Password in Ubuntu”