MySQL problems
Posted: Mon 04 Oct 2021 2:21 am
Hi
I am running CumulusMX version b3148. My website is: kstwx.net/cumx/index.htm.
freddie wrote: ↑
Mon Sep 27, 2021 4:22 pm
Have you looked at your user table in mysql to check that user kstwx197 is permitted to access the database from the host on which MX is running? In the user table you have columns Host and User. You should have a row where your kstwx197 user is listed against the IP address or hostname of the MX host. If this row is present then you need to look at whether the user has been granted insert privileges on the Cumulus tables.
I have looked at all of the above suggestions and look OK to me given that the RealtimeTable is being updated every minute or so. This seems to be too often to me.
The wiki area that I looked at seems to indicate that I can change the MySQL settings from the settings pages of the settings dropdown in the dashboard: I can't find that. The only thing that I can find which relates to MySQL is a page in which the 3 tables can be created. In relation to my MySQL issues (see below), these are the MySQL entries in my cumulus.ini file:
[MySQL]
Host=xxxx
Port=xxxx
User=xxxx
Pass=xxxx
Database=xxxx
MonthlyMySqlEnabled=1
RealtimeMySqlEnabled=1
DayfileMySqlEnabled=1
MonthlyTable=monthlycumx
DayfileTable=dayfilecumx
RealtimeTable=realtimecumx
RealtimeRetention=7Days
CustomMySqlSecondsCommandString=
CustomMySqlMinutesCommandString=
CustomMySqlRolloverCommandString=
CustomMySqlSecondsEnabled=0
CustomMySqlMinutesEnabled=0
CustomMySqlRolloverEnabled=0
CustomMySqlSecondsInterval=10
CustomMySqlMinutesIntervalIndex=6
RealtimeMySql1MinLimit=1
UpdateOnEdit=1
BufferOnFailure=0
With the above settings, these are an example of the errors that are reported in my MXDiags file every 5 minutes:
2021-10-02 17:20:02.898 DoLogFile: Error encountered during MySQL operation = Unknown column 'Humidex' in 'field list'
2021-10-02 17:20:12.826 Realtime[140]: Error encountered during MySQL operation = 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 ')' at line 1
2021-10-02 17:21:13.846 Realtime[142]: Error encountered during MySQL operation = 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 ')' at line 1
2021-10-02 17:22:13.788 Realtime[144]: Error encountered during MySQL operation = 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 ')' at line 1
2021-10-02 17:23:13.909 Realtime[146]: Error encountered during MySQL operation = 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 ')' at line 1
Advice as to how fix the above errors and lengthen the update schedule as well as any other advice and/or recommended additions to the cumulus.ini entry cited above will be much appreciated.
best wishes
Keith
I am running CumulusMX version b3148. My website is: kstwx.net/cumx/index.htm.
freddie wrote: ↑
Mon Sep 27, 2021 4:22 pm
Have you looked at your user table in mysql to check that user kstwx197 is permitted to access the database from the host on which MX is running? In the user table you have columns Host and User. You should have a row where your kstwx197 user is listed against the IP address or hostname of the MX host. If this row is present then you need to look at whether the user has been granted insert privileges on the Cumulus tables.
I have looked at all of the above suggestions and look OK to me given that the RealtimeTable is being updated every minute or so. This seems to be too often to me.
The wiki area that I looked at seems to indicate that I can change the MySQL settings from the settings pages of the settings dropdown in the dashboard: I can't find that. The only thing that I can find which relates to MySQL is a page in which the 3 tables can be created. In relation to my MySQL issues (see below), these are the MySQL entries in my cumulus.ini file:
[MySQL]
Host=xxxx
Port=xxxx
User=xxxx
Pass=xxxx
Database=xxxx
MonthlyMySqlEnabled=1
RealtimeMySqlEnabled=1
DayfileMySqlEnabled=1
MonthlyTable=monthlycumx
DayfileTable=dayfilecumx
RealtimeTable=realtimecumx
RealtimeRetention=7Days
CustomMySqlSecondsCommandString=
CustomMySqlMinutesCommandString=
CustomMySqlRolloverCommandString=
CustomMySqlSecondsEnabled=0
CustomMySqlMinutesEnabled=0
CustomMySqlRolloverEnabled=0
CustomMySqlSecondsInterval=10
CustomMySqlMinutesIntervalIndex=6
RealtimeMySql1MinLimit=1
UpdateOnEdit=1
BufferOnFailure=0
With the above settings, these are an example of the errors that are reported in my MXDiags file every 5 minutes:
2021-10-02 17:20:02.898 DoLogFile: Error encountered during MySQL operation = Unknown column 'Humidex' in 'field list'
2021-10-02 17:20:12.826 Realtime[140]: Error encountered during MySQL operation = 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 ')' at line 1
2021-10-02 17:21:13.846 Realtime[142]: Error encountered during MySQL operation = 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 ')' at line 1
2021-10-02 17:22:13.788 Realtime[144]: Error encountered during MySQL operation = 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 ')' at line 1
2021-10-02 17:23:13.909 Realtime[146]: Error encountered during MySQL operation = 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 ')' at line 1
Advice as to how fix the above errors and lengthen the update schedule as well as any other advice and/or recommended additions to the cumulus.ini entry cited above will be much appreciated.
best wishes
Keith