Hi in Mamp Pro I accidentally removed the root account, so I now cannot use mysql to create new databases and all other operations.
This is the error I get when startng mysql via mamp pro:
Checking MySQL databases failed Error message: /Applications/MAMP/Library/bin/mysqlcheck: Got error: 1044: Access denied for user 'root'@'localhost' to database 'mysql' when selecting the database
I have tried to reset to factory settings but that hasn't helped.
Basically in the users overview in Phpmyadmin, I just get a yellow box saying "No privileges".
I also tried to uninstall Mamp Pro, but when I tick the uninstaller's checkboxes and hit uninstall, I get the following error:
Error The privileged action failed.
Help would be really appreciated since I cannot do any work like this.
root
user without starting over. You can start MySQL with a--init-file
that grants permissions to theroot
user, eg: Restoring a deleted root user. – Arbiter