"into outfile" in MySQL



I’m trying to unload from table to file like that:
SELECT col1 FROM mytable INTO OUTFILE ‘/home/my_account/filename.unl’

And I get the error:
Error: 1045
Access denied for user ‘’@‘2xxx.1xxx.1xx.xxx’ (using password: YES)

What do I need to do in order to enable my MySQL DB user to write a file in my account?