Mar 15, 2007 - 01:32 AM
That command line parameter actually works - well, you have to use double dash (--) like this:
mysql -h host -u username -p password --default_character_set utf8 database < file.sql
Silly me hadn't tried it before because I'd read in a forum that it only applies to the connection and the database - not the file :-) Maybe that was true in a previous version of mysql...
Now it works!