OpenEMR setup after second installation error

Situation
I forgot my password I created during the first OpenEMR setup. Therefore I deleted the openEMR folder (openemr) in my htdocs and installed the 6.1.0 version again and tried to follow the same steps as last time (while with XAMPP Apache, MySQL Database are running):

Have setup create the database
Create MySQL Server Details Password
Create MySQL Server Details Root Password
OpenEMR Initial User Details Initial User Password

→ Step 3:
Connecting to MySQL Server… ERROR. Check your login credentials. unable to connect to database as root

My question: Why does this error occur and how can I setup openEMR after having it installed on my laptop before?

Operating System
I’m using: Mac OS

I think it’s the root password. make sure you create credentials for localhost.
SET PASSWORD FOR ‘root’@‘localhost’ = PASSWORD(‘mypass’); FLUSH PRIVILEGES;.