“Alternatively, on any platform, you can set the new password using the mysql client (or any client like SQLyog – my addition)… stop mysqld and restart it with the –skip-grant-tables option.”
Now you can connect without password, add/edit users (with SQLyog or whatever). Now again start server normally. But you will need privileges to stop and start MySQL of course.
“Alternatively, on any platform, you can set the new password using the mysql client (or any client like SQLyog – my addition)… stop mysqld and restart it with the –skip-grant-tables option.”
Now you can connect without password, add/edit users (with SQLyog or whatever). Now again start server normally. But you will need privileges to stop and start MySQL of course.