Sebastian Mogilowskis Blog

Just another blog about administration, linux and other stuff

Language: German English

MySQL command line import of file with UTF-8 encoding


Ein kurzer Notizeintrag für mich …


Importieren eines UTF-8 codierten MySQL Datenbankexports mit der MySQL Kommandozeile:

mysql -D databasename -h hostname -p -u db_username --default_character_set utf8 < sqlfile.sql


Wenn man das “–default_character_set utf8″ Flag nicht setzt, bekommt man jede Menge lustige Zeichen in die Datenbank :-)

, , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

eMail-Benachrichtigung bei weiteren Kommentaren.
Auch möglich: Abo ohne Kommentar.