skip-grant-tables在8.0中已失效
可先停止mysql服务
在cmd中使用mysqld --console --skip-grant-tables --shared-memory
再另开cmd即可不用密码登录
skip-grant-tables在8.0中已失效
可先停止mysql服务
在cmd中使用mysqld --console --skip-grant-tables --shared-memory
再另开cmd即可不用密码登录
转载于:https://www.cnblogs.com/chhhh/p/10687760.html