I just took it for a test run and it needs some tweaking.
1) Please add "SET autocommit=0;" at the beginning (Faster import)
2) Change the code from "archive" > `archive', to "archive" > archive. (strip quotes) It didn't work for me at all with the `.
DOCS:
> sqlite3 /home/weewx/archive/weewx.sdb
sqlite> .output /home/weewx/archive/weewx.sql
sqlite> .dump
Convert it (unless I'm missing the straight push into the DB? If that is the case, weewx shouldn't be running if it is)
> ./sqlite3-to-mysql.py /home/weewx/archive/weewx.sql > /home/weewx/archive/weewx.sql.import
Create tables via weewx or weewx.sql.import
If you already changed weewx to mysql and started it, all the tables will already be created, and the import will fail. If you already did this, remove the TABLE CREATE section from the .import file.
Then reload into MySQL
> mysql -u weewx --password=password weewx < /home/weewx/archive/weewx.sql.import