MySQL: import a dump

Martin Zeller MySQL 0 Comments

If you have got a sql-File and want to import it to your MySQL database then you can do this with a simple line in the shell: Example: Say there is a local MySQL database, with a database called ‚mybestsellers‘, we have got a dump file ‚/home/users/jripper/bestsellerdump.sql‘ and we connect to our database with username ‚dbuser‘ and password ‚xxx‘ Our …