sql报错The user specified as a definer (‘skip-grants user’@‘skip-grants host’) does not exist 运行代码时之前好好的代码突然报错了 发现是数据的视图权限出了问题 在数据库运行 grant all privileges on . to ‘skip-grants user’@‘skip-grants host’ identified by “.” 即可 测试不再报错