Hi,
I am running the latest version of CumulusMX on Ubuntu 20.04.3 LTS, I also have a dedicated MySQL server of whch is utilies by CumulusMX. Everything appears to be functioning.
That said I have noticed when I run 'cd CumulusMX && sudo mono ExportMySQL.exe dayfile' I receive a message 'Can't connect to MySQL server on '###.###.###.###' (10061): Authentication failed.' - The funny thing is that I know for a fact that CumulusMX is able to write to the database as there is data being entered in to it. It just doesn't allow the export.
Any ideas why this is happening? Does the ExportMySQL.exe only work when the MySQL database is hosted locally?
Glen
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
ExportMySQL.exe Not Loading Data to Remote MySQL Database
Moderator: mcrossley
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: ExportMySQL.exe Not Loading Data to Remote MySQL Database
ExportMySQL does connect to remote databases OK - I do that when testing it.
The executable needs to be in the main CMX folder, and your path needs to there too as it reads the server address, username/password, and database name from Cumulus.ini - but it looks like you are doing that.
You need to be running the latest version of ExportMySQL - v1.4.0.
I'm not sure what else to suggest really. It will use the same username as CMX which rules out the usual issue of that user not have remote access rights in MySQL.
The code for connecting to MySQL is the same.
The executable needs to be in the main CMX folder, and your path needs to there too as it reads the server address, username/password, and database name from Cumulus.ini - but it looks like you are doing that.
You need to be running the latest version of ExportMySQL - v1.4.0.
I'm not sure what else to suggest really. It will use the same username as CMX which rules out the usual issue of that user not have remote access rights in MySQL.
The code for connecting to MySQL is the same.
-
sfws
- Posts: 1183
- Joined: Fri 27 Jul 2012 11:29 am
- Weather Station: Chas O, Maplin N96FY, N25FR
- Operating System: rPi 3B+ with Buster (full)
Re: ExportMySQL.exe Not Loading Data to Remote MySQL Database
Mark actually means the ExportToMySql.exe utility that he wrote - see https://cumuluswiki.org/a/Software#ExportToMySQL sub-section in Wiki for 1.4.0 download.mcrossley wrote: ↑Thu 06 Jan 2022 11:56 am ExportMySQL does connect to remote databases OK - I do that when testing it.
The executable needs to be in the main CMX folder, and your path needs to there too as it reads the server address, username/password, and database name from Cumulus.ini - but it looks like you are doing that.
You need to be running the latest version of ExportMySQL - v1.4.0.
The utility "ExportMySQL.exe" (without the "To") was something written by Steve Loft for his MX beta that is not compatible with the recent MX releases.
-
glen.day
- Posts: 105
- Joined: Wed 16 Jul 2008 11:55 pm
- Weather Station: Davis Vantage Pro 2/Vue
- Operating System: Ubuntu 20.04.3 LTS
- Location: Lara, Victoria Australia
- Contact:
Re: ExportMySQL.exe Not Loading Data to Remote MySQL Database
Yeah a bit weird.
I am definitely using the latest version - v1.4.0. As mentioned, I can see CumulusMX updating the MySQL tables (when running normally). I even went to the extreme and deleted the tables and created from the webpage, this worked fine - so I know the connection is correct/working.
I also initiated a connection via MySQL client from the CumulusMX machine to the MySQL machine and was able to connect. It's just the Export exe!
Anyway if there isn't anything else you can suggest I'll just have to continue with what I have.
I am definitely using the latest version - v1.4.0. As mentioned, I can see CumulusMX updating the MySQL tables (when running normally). I even went to the extreme and deleted the tables and created from the webpage, this worked fine - so I know the connection is correct/working.
I also initiated a connection via MySQL client from the CumulusMX machine to the MySQL machine and was able to connect. It's just the Export exe!
Anyway if there isn't anything else you can suggest I'll just have to continue with what I have.
-
glen.day
- Posts: 105
- Joined: Wed 16 Jul 2008 11:55 pm
- Weather Station: Davis Vantage Pro 2/Vue
- Operating System: Ubuntu 20.04.3 LTS
- Location: Lara, Victoria Australia
- Contact:
Re: ExportMySQL.exe Not Loading Data to Remote MySQL Database
Oh really, let me check.sfws wrote: ↑Thu 06 Jan 2022 12:05 pmMark actually means the ExportToMySql.exe utility that he wrote - see https://cumuluswiki.org/a/Software#ExportToMySQL sub-section in Wiki for 1.4.0 download.mcrossley wrote: ↑Thu 06 Jan 2022 11:56 am ExportMySQL does connect to remote databases OK - I do that when testing it.
The executable needs to be in the main CMX folder, and your path needs to there too as it reads the server address, username/password, and database name from Cumulus.ini - but it looks like you are doing that.
You need to be running the latest version of ExportMySQL - v1.4.0.
The utility "ExportMySQL.exe" (without the "To") was something written by Steve Loft for his MX beta that is not compatible with the recent MX releases.
-
glen.day
- Posts: 105
- Joined: Wed 16 Jul 2008 11:55 pm
- Weather Station: Davis Vantage Pro 2/Vue
- Operating System: Ubuntu 20.04.3 LTS
- Location: Lara, Victoria Australia
- Contact:
Re: ExportMySQL.exe Not Loading Data to Remote MySQL Database
Hmm maybe your right? Maybe that ExportMySQL.exe is a old component, maybe I left it in my directory for years?
I checked the package and there is no ExportMySQL file.
So that brings me to ask, do we have this functionality in the new version? How can I export all my data to MySQL?
I checked the package and there is no ExportMySQL file.
So that brings me to ask, do we have this functionality in the new version? How can I export all my data to MySQL?
-
glen.day
- Posts: 105
- Joined: Wed 16 Jul 2008 11:55 pm
- Weather Station: Davis Vantage Pro 2/Vue
- Operating System: Ubuntu 20.04.3 LTS
- Location: Lara, Victoria Australia
- Contact:
Re: ExportMySQL.exe Not Loading Data to Remote MySQL Database
Nevermind a link was provided, I'll have a look now.
-
glen.day
- Posts: 105
- Joined: Wed 16 Jul 2008 11:55 pm
- Weather Station: Davis Vantage Pro 2/Vue
- Operating System: Ubuntu 20.04.3 LTS
- Location: Lara, Victoria Australia
- Contact:
Re: ExportMySQL.exe Not Loading Data to Remote MySQL Database
Thanks all, ended up being an old version of the Export.exe.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: ExportMySQL.exe Not Loading Data to Remote MySQL Database
Ah, yes, good distinction.