First of all you should create a new user if you required, instead of renaming to root user.
Further if you have any other admin user with grant privileges then you can connect by that user.
If you don't have any other admin user and not able to connect mysql by any way then you need to follow below steps to unlock root user.
Step1: add below 2 line in your my.cnf or my.ini file.
skip-grant-tables
skip-networking
Step2: restart mysql service.
Step2: connect mysql without password (just pass mysql command without username and password) and change user name again to root by below command.
UPDATE mysql.user SET user='root' WHERE USER='myuser'; flush privileges;
Step3: Remove newly added 2 lines from my.cnf file and restart mysql service.
Step4: Now try with below command-
mysql -uroot -p
pass password whatever you changed for myuser as we just changed username but not password at this time.