Hallo zusammen,
habe ein kleines Problem mit dem Einlesen der Blitzortungsdaten in die MySQL-Datenbank. Es soll, laut Protokolleintrag,
ein SQL-Syntaxfehler vorliegen.
Die Versionsabfrage von MySQL ergibt 5.1.49-3, läuft auf Debian Linux auf einem lokalen PC.
Hat jemand eine Idee, was da falsch läuft?
Die Abfrage "show tables" zeigt diese Tabellen:
+----------------------------+
| Tables_in_meineblitzortung |
+----------------------------+
| bo_cities |
| bo_conf |
| bo_densities |
| bo_raw |
| bo_stations |
| bo_stations_stat |
| bo_stations_strikes |
| bo_strikes |
| bo_user |
+----------------------------+
Auszug aus dem Install-Protokoll
2011-11-25 23:51:19 |
2011-11-25 23:51:19 | ***** Getting lightning data from blitzortung.org *****
2011-11-25 23:51:19 |
2011-11-25 23:51:19 | Information: PHP Execution timeout is 30s --> Fine
*** Setting MyBlitzortung timeout to: 55s
2011-11-25 23:51:19 |
2011-11-25 23:51:19 | === Strikes ===
2011-11-25 23:51:20 | Partial download didn't work, got whole file instead (sent range 0 got bytes)
2011-11-25 23:51:20 | Last strike: 2011-11-24 23:51:19 *** Importing only strikes newer than: 2011-11-24 23:46:19 *** This is update #
2011-11-25 23:51:20 | Lines: 281 *** New Strikes: 280 *** Updated: 0 *** Already read: 0
2011-11-25 23:51:20 |
2011-11-25 23:51:20 | === Stations ===
2011-11-25 23:51:20 | Last update: 1970-01-01 01:00:00 *** This is update #
2011-11-25 23:51:21 | Stations: 367 *** New Stations: 367 *** Updated: 0
2011-11-25 23:51:21 |
2011-11-25 23:51:21 | === Raw-Data ===
2011-11-25 23:51:21 | Old Login-Id outdated. Got new Login-Id: K7STEM8B...
2011-11-25 23:51:22 | No last signal found! Last time: . Setting to now -2 hours.
2011-11-25 23:51:22 | Last signal: 2011-11-25 21:51:22 *** Importing only signals newer than: 2011-11-25 21:49:22 *** This is update #
Database Query 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 'x'7'
,amp1='0', amp2='0',
amp1_max='0', amp2_max='0',
freq1='0', f' at line 6
for query
INSERT INTO bo_raw SET time='2011-11-25 21:02:14',
time_ns='811997148',
lat='50.481367',lon='8.896210',
height='0',
strike_id='0',
data=x'7'
,amp1='0', amp2='0',
amp1_max='0', amp2_max='0',
freq1='0', freq2='0',
freq1_amp='0', freq2_amp='0'
2011-11-25 23:51:22 | Wrong line format: "2011-11-25 21:03:26.655634273 50.481366 8.896210 0.0 2 1 12 2800 a4080