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

PDOStatement: Access denied for user ' #382

Open
Backpackstudio opened this issue Sep 8, 2019 · 1 comment
Open

PDOStatement: Access denied for user ' #382

Backpackstudio opened this issue Sep 8, 2019 · 1 comment
Labels

Comments

@Backpackstudio
Copy link

An error occurs: "PDOStatement: Access denied for user '"

The cause of this error is that you are using views, but if you change database user name for some reasons, then old username is stored on view!

@Alanaktion
Copy link
Owner

There's not really a way for the application to solve this itself, either the definer on the views needs to match the user used in the application configuration, or the user needs to have access to other users' views (which it does by default as far as I know). I could add something to the documentation, but it's not something the application can solve itself since it's not allowed to update views it no longer owns.

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