Import mysql dump file into mysql via command line

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Import mysql dump file into mysql via command line

Post by Luke »

I have never used the command line to import a dumpfile... how do I do it? I tried a few things I found on mysql's site, but none of them seemed to work. I don't know what I'm doing wrong.

(the file is just a bunch of inserts one after another)
Last edited by Luke on Wed Dec 06, 2006 5:47 pm, edited 2 times in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What did you try?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

dammit... :oops: I found it... :oops: :oops:

Code: Select all

SOURCE 'filename.sql';
Post Reply