MySQL Import and Export via terminal / shell

Categories: web-development
Written By: Viktor Dite

Import (Rücksicherung der Datenbank)

You are not able to import large files (>2MB) via PHPMyAdmin. To do so, you have to import your sql file with the mysql client:

mysql -hlocalhost -uuser -ppassword database_name < dump.sql

Export (Datenbanksicherung)

mysqldump -hlocalhost -uuser -ppassword database_name > dump.sql


RSS1.0 | RSS2.0 | Atom | Trackback URL |

One Response to “MySQL Import and Export via terminal / shell”

  1. Suchen und Ersetzen in der MySQL Datenbank Says:

    [...] Alternative: Suchen und Ersetzen im Backup. d.h. Backup der Datenbank erstellen, in dem resultierendem sql Dump dann mittels eines geeigneten Texteditors “Suchen und [...]

Leave a Reply