I am using mysql.connector from Python to access data from a MariaDB but for each select statement I get:
mysql.connector.errors.ProgrammingError: 1142 (42000): SELECT command denied to user 'testUser'@'localhost' for table [TABLENAME]
... but the rights should be there?
MariaDB [DB_NAME]> SHOW GRANTS FOR 'testUser';
+------------------------------------------------------------------------------------------------------------------+
| Grants for testUser@% |
+------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'testUser'@'%' IDENTIFIED BY PASSWORD '[PW AS HASH]' |
+------------------------------------------------------------------------------------------------------------------+
It used to work but then I played a round with permissions in order to write out a text file from the result of an sql query (directly in MariaDB) - no idea what I did wrong ... how can I fix this back to working?