启动 mysqld 时加上 --skip-grant-tables 参数可以无密码进入 MySQL。