Error trying to connect via ODBC to MySQL [duplicate]

2

I'm trying to make a connection via ODBC with MySQL Database to access data in Excel, however after performing all the necessary settings the following error window is shown to me:

SoIconfiguredtheconnector:

If you have any idea what might be causing such an error, or what would need to be changed in the configuration

    
asked by anonymous 05.04.2017 / 21:19

1 answer

6

Access the Server as root

mysql -u root -p -h localhost

And grant the privilege to the user

GRANT ALL PRIVILEGES ON *.* TO 'reports'@'localhost' IDENTIFIED BY 'sua senha';
FLUSH PRIVILEGES;

Syntax GRANT

Best practices

Do not grant ALL privileges on all banks, root already has this function. Specify what this user can have access to. Example:

GRANT INSERT, SELECT, UPDATE ON <seu_banco>.* TO 'reports'@'localhost' IDENTIFIED BY 'sua_senha';
    
05.04.2017 / 21:54