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
Problem with SQL table after migrating from Matomo 3 to Matomo 4 #17762
Comments
Hi @BRVN01, there should be backticks around
If the error occurs in Matomo, can you find the stack trace? (Adding |
This file ( About the
This table looks broken, the value is not normal, can you tell me if it's like that? |
It seems that mysql cannot create the output as it should be, everything is a little broken. The
|
Yes, the file will be read if it's there, it's one of the places for custom matomo config (like the define() that sets the backtrace). You can delete the file after or just remove the
That does looks strange, I'm not sure what could cause that. Can you try the following queries:
|
Done, but the results are pretty much the same:
The sql command worked fine, less the last one, my db is called 'piwik':
Follow the GUI report:
During the migration tests I couldn't see this error, I thought it was related to the MySQL server, but now I think it's related to Matomo, I don't know anymore. |
@BRVN01 can you make sure your bootstrap.php file looks like this:
Then trigger the original error you were seeing again. There should be a stack trace. |
Hello, The
But I got the same error, in the
In the
The error appears to be the same error described in the link below. The OS and Matomo version are different though. |
Hello, Just to record for those who have this problem, after editing these files, you need to change the file size in bytes and the md5 hash in the |
Hello,
I don't know how this happened, but I see a problem after the upgrade from Matomo 3 to Matomo 4, the upgrade from Ubuntu 14.4 to Ubuntu 20.04 was performed as well.
Current Behavior
The GUI reports that there is an error in the SQL syntax:
Erro: Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option (option_name,option_value) VALUES (?,?)' at line 1
I don't see the same reports when I run diagnostics via './console diagnostics: run --all', just from the GUI.
Apparently I have no problem, everything works fine, but I don't like this report. I can see that there is a table called 'option' in the Matomo database, but when I list the table structure, I can see the same error shown by the GUI, the same error happened when I list the data in this table too, is this table important? I didn't find her in the documentation.
Table OPTION
mysql> desc option;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option' at line 1
mysql> select * from option;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option' at line 1
I don't know if this table is the cause of the problem, but it seems to have some relationship, could someone help me with this error?
Thank you so much.
The text was updated successfully, but these errors were encountered: