List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:February 1 2002 7:21pm
Subject:Re: Run a file from mysql prompt
View as plain text  
At 11:12 -0800 2/1/02, David Turner wrote:
>How do I get a file full of sql commands to run
>from the mysql prompt?

mysql> source filename;

or

mysql> \. filename;


>
>
>In oracle I would type
>
>
>@thefilename
>
>I know how to do run the file from the unix prompt mysql < thefilename.sql
>
>Thanks, Dave
>
>---------------------------------------------------------------------
>Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
>To request this thread, e-mail <mysql-thread98330@stripped>
>To unsubscribe, e-mail <mysql-unsubscribe-paul=snake.net@stripped>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Thread
Run a file from mysql promptDavid Turner1 Feb
  • Re: Run a file from mysql promptPaul DuBois1 Feb
    • Re: Run a file from mysql promptDavid Turner1 Feb
RE: Run a file from mysql promptGregert Johnson1 Feb