APPLE ][e  //  georgemastro.com  //  64K   ][
GEORGE MASTRO — DISK VOLUME 1982

] CATALOG
] TYPE ERROR-ASCII-0-APPEARED-IN-THE-STATEMENT-BUT-THIS-IS-NOT-ALLOWED-UNLESS-OPTION.TXT

ERROR: ASCII ‘\0’ appeared in the statement, but this is not allowed unless option…

> 2014 — 05 — 30  ·  #web-development

ERROR: ASCII ‘\0’ appeared in the statement, but this is not allowed unless option –binary-mode is enabled and mysql is run in non-interactive mode. Set –binary-mode to 1 if ASCII ‘\0’ is expected. Query: 


Today I came across with this very weird error message while trying to import my database from shell. Well….it’s not very clear what the heck is going on, but the solution is very simple. You just have to gunzip your sql.gz file before you import it.
So just run
gunzip myfile.sql.gz

(C) 1983 GEORGE MASTRO — ATHENS, GR *** DISK VOLUME 1983  ·  BYTES FREE: 21847 ***
]