Joachim:
Cleaning up bad data in your MySQL database can be done using a SQL editor. I used DBeaver (
dbeaver.io) which is a universal database manager. It will connect to MySQL, SQLite, and MariaDB (which is what I use for WeeWX) and a lot of other databases.
This is what i would do:
1. Download dbeaver from
dbeaver.io and set it up on your workstation
2. in DBeaver, under Database, select new connection. Provide the host name and port (I believe it is 3306) of the mySQL Server instance and login with the same login that you are using with WeeWX.
3. Open a new SQL Script window by clicking on SQL Editor->New SQL Script. Ensure you select the connection and database above.
4. Now using the Bad Data wiki, find the errant record by querying the archive table in the database. The SQLite commands should work as both databases are SQL99 compliant.
5. Before you delete any rows, dump the database to a file. you can do that with DBeaver by clicking on the connection, navigate to the database, right click on the database and select dump database. See screenshot for details.
6. delete the row by finding the dateTime value you want to remove and use that in your WHERE Clause. You can use the keyword FROM_UNIXTIME to convert the dateTime value to a real date. here is an example:
select FROM_UNIXTIME(dateTime) , windGust from archive;
Let me know if that helps