¿Alguien sabe por qué me aparece este error al ejecutar mysqlimport?mysqlimport: Error: 1045, Acceso denegado
mysqlimport -u someone -pwhatever --columns=a,b,c,d,e bar /var/tmp/baz.sql
mysqlimport: Error: 1045, Access denied for user 'someone'@'%' (using password: YES), when using table: baz
Sin embargo ...
mysql -u someone -pwhatever
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 199
Server version: 5.1.41-3ubuntu12.10 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show grants;
+------------------------------------------------------------------------------------------------------------+
| Grants for [email protected]% |
+------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'someone'@'%' IDENTIFIED BY PASSWORD '*BLAHBLAHBLAH' |
| GRANT ALL PRIVILEGES ON `bar`.* TO 'someone'@'%' |
+------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)
mysql>
Si obtiene 'ERROR 1221 (HY000): uso incorrecto de DB GRANT y GLOBAL PRIVILEGES', después de establecer diferentes parámetros, vuelva a lo que muestra esta respuesta: "GRANT FILE ON *. * To user @ localhost;" - "los privilegios FILE son globales y no se pueden aplicar a una única base de datos" –