Hướng dẫn Reset MySQL Or MariaDB Root Password

Reset MySQL or MariaDB Root password. First, stop the database server. If you use MySQL, type the following command and hit ENTER key. $ sudo systemctl stop mysql For MariaDB: $ sudo systemctl stop mariadb Next, restart the database server without permission-checking using the following command: $ sudo mysqld_safe –skip-grant-tables & Next, login to your[…]