Error while grant privileges to user root.
I need to use outfile to create a archive. but the user root does not have this permission.
I entered like a root and run the following commands
mysql> grant file on cnpj.cnpj to 'root'@'%';
ERROR 1045 (28000): Access denied for user 'root'@'%' (using password: YES)
mysql> grant all on cnpj.* to 'root'@'%';
Query OK, 0 rows affected (0.01 sec)
mysql> grant update on cnpj.* to 'root'@'%';
Query OK, 0 rows affected (0.01 sec)
mysql> grant file on cnpj.* to 'root'@'%';
ERROR 1045 (28000): Access denied for user 'root'@'%' (using password: YES)
Have success to grant all privileges less FILE...
Please I would like receive help to fix my doubts