Maria db password access denied

thaya@Thayas-MacBook-Pro ~ % mysql_secure_installation
/usr/local/bin/mysql_secure_installation: Deprecated program name. It will be removed in a future release, use ‘mariadb-secure-installation’ instead

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we’ll need the current
password for the root user. If you’ve just installed MariaDB, and
haven’t set the root password yet, you should just press enter here.

Enter current password for root (enter for none):
ERROR 1698 (28000): Access denied for user ‘root’@‘localhost’
Enter current password for root (enter for none):
ERROR 1698 (28000): Access denied for user ‘root’@‘localhost’

Hy @Thaya_Govzig

Please check the link in which the solution is given

Thank You!