我有一个名为backup.sql的sql文件,我正在尝试使用workbench导入此文件,但在某些时候,我收到此错误:
错误:
ERROR 1142 (42000) at line 1758: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'events_waits_summary_by_thread_by_event_name'
Operation failed with exitcode 1
我尝试了以下sql语句,但没有任何改变。
GRANT SELECT,LOCK TABLES ON *.* TO 'root'@'localhost'