I have a text file which I want to load into a MySQL database.
When I execute the command:
load data infile '/saurabh/chk1.txt'
into table chk1 fields terminated by '\t' lines terminated by '\n';
I get the error:
ERROR 1045 (28000): Access denied for user 'saurabh'@'localhost' (using password: YES)
Since I thought this was a permissioning problem, I used show grants
command,
GRANT USAGE ON *.* TO 'saurabh'@'localhost' IDENTIFIED BY PASSWORD '*40639DEF'
GRANT ALL PRIVILEGES ON `saurabh`.* TO 'saurabh'@'localhost' .