I am running an automated script that generates a CSV file from a query every 24 hours which works well, but I must use root login. As soon as I change it to the user login (who has the same rights to the schema as root) it gives me the error
mysql --user=xxx --password=xxx --database=xxx 0< ERROR 1045 (28000) at line 1: Access denied for user 'xxx'@'%' (using password: YES)
Any ideas