Posted by NC on 02/14/06 05:22
Tony Peardon wrote:
>
> I was looking througn the manual, trying to make sence out of all this sql
> stuff, when I discovered that I could define my tables in a text file,
> rather than typing them at the mysql> prompt. line by line, only to see if
> fail because of a simple typo; So I wrote a file.
> ...
> "How do I 'run' this file?"
Use the command-line MySQL client:
mysql -u [user] -p[password] < [file_name]
Note that there is no space between -p and the password...
Cheers,
NC
[Back to original message]
|