Restoring deleted 'root' user and password for MySQL

前端 未结 9 1987
独厮守ぢ
独厮守ぢ 2020-11-27 03:47

I accidentally deleted the root user on my local dev setup of MAMP/MySQL running on OS X. There are no other users created to get back into MySQL.

Thi

9条回答
  •  渐次进展
    2020-11-27 03:54

    Worked for me on CentOS 6. I had to take out Create_tablespace_priv = 'y' because my version squawked otherwise all good.

提交回复
热议问题