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
unit test fails SQLSTATE[42S02]: Base table or view not found: 1146 Table 'matomo_tests.option' doesn't exist #17078
Comments
Hi @RobMcA thanks for creating this issue. I suppose you're using the latest 4.X version of Matomo from github? In matomo-org/developer-documentation#385 it was mentioned that the MySQL user needs to have CREATE/DROP database & tables etc permission. Do you know if the MySQL user is maybe missing some permissions? Although I would assume in this case maybe the error message would be different. The issue also mentions that somehow |
Thanks for the input. After setting
Looking in the web log I see the following error:
My mysql database is running utf8mbf3. Any suggestions? I tried
Changing |
Strangely, resetting everything from scratch and running it all again resulted in the unit tests running fine with no change needed to request_uri. |
Thanks @RobMcA I'll close this issue for now as a duplicate of matomo-org/developer-documentation#385 where we need to adjust the docs as I understand it works now for you. Thanks for trying all this and sorry for running into that trouble. Did you initially set the |
After following the development setup and testing instruction, when running
./console tests:run --testsuite unit
I get an error. I have created the databasematomo_tests
as mentioned in the docs, but don't see anything in the documentation on how to get the required tables created.The text was updated successfully, but these errors were encountered: