Reputation: 363
I'm attempting to use Solr to run a full data import via the Solr admin interface. When I run it however, I get the following output:
"Indexing failed. Rolled back all changes."
On further inspection of the Solr logs, I can see that I'm getting the following error:
Caused by: java.sql.SQLException: Access denied for user 'username'@'127.0.0.1' (using password: YES)
(Username replaced for security, full stack here)
Has anyone else had the same issue? I've double checked the database details (have accessed the database in question from the command line successfully).
I've also checked the privileges for the user and can confirm that it has all privileges granted for it on the database in question.
Upvotes: 1
Views: 617
Reputation: 363
It turns out that it was related to privilieges for the database users. I had granted prvilieges to the user in the question, but had left out the "IDENTIFIED BY 'password'" part of the command.
So this is what I needed to use:
GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
Hope this helps someone else with the same problem.
Upvotes: 1