Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 求助! 迁移到TiDB报错
[Test Environment for TiDB] Testing
[Encountered Issue: Problem Phenomenon and Impact] Exporting source files using local MySQL in TiDB backend mode, what is the reason for the error? The configuration file is as follows:
The admin account does not have sufficient permissions.
Incorrect password or insufficient permissions.
Access denied account issue, the admin privileges of this TiDB account are insufficient.
You can switch to the root account, or try granting permissions to the admin:
--alter user admin@'%' identified by 'pwd';
create database lightning_task_info;
grant all privileges on lightning_task_info.* to 'admin'@'%';
The admin account permissions are not set correctly.