我使用mysql转储创建了一个sql转储,但在另一台服务器上进行恢复时,我得到了一个错误'ERROR 1227 (42000) at line 397: Access denied; you needthis operation :
当我检查行号时,我发现问题似乎与部分根@本地主机有关,因为新服务器没有我正在使用的帐户的根权限50017 DEFINER=`root`@`localhost`*/ /*!
我有一个MySQL对,可以通过VIP进行交流。我希望验证来自任何IP的所有用户(包括root用户)的权限。当我试图查看root的所有授权时,我会得到以下内容:ERROR 1141 (42000): There is no such grant definedfor user 'root' on host '%'
我已经使用--skip-grant-tables选项登录到MySQL。但我不知道如何将所有权限返回给root用户。. * TO 'root'@'localhost';# 1290 - The MySQL server is running with the --skip-grant-tablesoption so it cannot execute this statementGRANT ALL PRIVILEGES