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

Access denied for user ‘dbxxxxxx’@’%’ to database ‘dbxxxxxx’ - in plugin Goals #15206

Closed
Solaris42 opened this issue Nov 29, 2019 · 14 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@Solaris42
Copy link

Hi,

since the last update all cronjob are not working to archive the reports.
Also all outgoing links are not tracked.
If I user toe option “archive the report while using browser” i get this error message:
Access denied for user ‘dbxxxxxx’@’%’ to database ‘dbxxxxxx’ - in plugin Goals

As I finde out while covering database to new version or in archive.php the correctly server address is Not taken. ----‘dbxxxx’@‘%’----- right should be -----dbxxxx’@‘localhost’----
Some bug read instead of host name "%"!
If I downgraded to 3.11 and all is working fine!

Cheers
Ralf

@tsteur
Copy link
Member

tsteur commented Nov 29, 2019

Do you know if you are using Mysqli or PDO? Have you maybe configured a socket?

@Solaris42
Copy link
Author

Solaris42 commented Nov 29, 2019 via email

@tsteur
Copy link
Member

tsteur commented Nov 29, 2019

Can you check your config/config.php file if there is a socket configured for the database?

@Solaris42
Copy link
Author

Solaris42 commented Nov 29, 2019 via email

@tassoman
Copy link
Contributor

host = "mysql.localhost"

Looks like should be only localhost

@tsteur
Copy link
Member

tsteur commented Nov 29, 2019

@Solaris42 any chance you could change this line https://github.com/matomo-org/matomo/pull/15166/files#diff-eda1d8d06c3a480082a428c24cebf762R349 in libs/Zend/Db/Adapter/Mysqli.php to $socket = null; just for a test?

I doubt it will make a difference but that's the only change I can think of so far that may cause this. Have you tried if it works with 3.12? I suppose you did update to 3.13 originally?

@Solaris42
Copy link
Author

Solaris42 commented Nov 29, 2019 via email

@tsteur
Copy link
Member

tsteur commented Nov 29, 2019

It seems like you are still using Matomo 3.12 actually so what I thought would be the issue doesn't seem to be the issue

@mattab
Copy link
Member

mattab commented Dec 5, 2019

If you have this issue please check that your Mysql user has the CREATE TEMPORARY TABLES permission / grant, see for example the GRANT query in https://matomo.org/faq/how-to-install/faq_23484/

-> Can you please confirm if you still have the issue after adding CREATE TEMPORARY TABLES permission?

fyi we'll hopefully make this error message more clear in the future #15237

@Solaris42
Copy link
Author

Solaris42 commented Dec 8, 2019 via email

@tsteur
Copy link
Member

tsteur commented Dec 8, 2019

@Solaris42 I'm quite certain this is due to missing 'create temporary table' permission on your mysql user. Have a look at #15237

Let me know if this doesn't help you but adding this permission should fix the issue

@tsteur tsteur closed this as completed Dec 8, 2019
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Dec 8, 2019
@Solaris42
Copy link
Author

Solaris42 commented Dec 9, 2019 via email

@tsteur
Copy link
Member

tsteur commented Dec 9, 2019

As I understand matomo changed the database handling with update to 3.12.? Because with version 3.11. all is working well.

Exactly, we changed this in 3.12 to fix a bug in Matomo and to improve performance. There is a workaround otherwise see #15130 (comment)

@Solaris42
Copy link
Author

Solaris42 commented Dec 9, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

4 participants