Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhelpful database access error #47

Open
ftrotter opened this issue Oct 21, 2019 · 0 comments
Open

Unhelpful database access error #47

ftrotter opened this issue Oct 21, 2019 · 0 comments
Assignees
Labels

Comments

@ftrotter
Copy link
Contributor

When you try to run DURC across another database and the database user does not have access to the new database... there is a very unhelpful error of:

In DURCMineCommand.php line 42:

  Invalid argument supplied for foreach()

in the command line script from running

 artisan durc:mine --DB=has_access --DB=does_not_have_access

Instead it should say something smart like:
You asked DURC to mine from "does_not_have_access" but user "durc user" does not have access to that database. DURC requires at least SELECT access to any table it works with, and to have full read-write access it should have SELECT, INSERT, UPDATE, and DELETE as well..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants