I want to allow LOAD DATA command for the john mysql user. So I logged into mysql terminal as root and issued the following statement:
grant file on johndatabase.* to 'john'@'localhost';
But I got the following error:
ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES
If I replaced johndatabase.*
with *.*
, then everything works. But doesn't *.*
mean all databases? I want to limit the john mysql user to just johndatabase.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…