List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:July 5 2004 2:56am
Subject:Re: mysql sql files...
View as plain text  
At 17:21 -0700 7/4/04, bruce wrote:
>hi..
>
>i can run sql files that have sql statements by :
>  shell:>mysql -u -p <foo.sql
>
>is there a way to run foo.sql if i'm already inside the mysql env...
>
>neither a search of google/mysql indicates that you can...

You don't have to use Google.  Just read the section on the mysql
program in the MySQL Reference Manual.

http://dev.mysql.com/doc/mysql/en/mysql.html

In particular, this subsection:

http://dev.mysql.com/doc/mysql/en/Batch_Commands.html


-- 
Paul DuBois, MySQL Documentation Team
Madison, Wisconsin, USA
MySQL AB, www.mysql.com
Thread
date and time functions.Hari Yellina4 Jul
Re: date and time functions.Eric Bergen4 Jul
  • mysql sql questionbruce4 Jul
    • Re: mysql sql questionPaul DuBois4 Jul
      • RE: mysql sql questionbruce5 Jul
    • Re: mysql sql questionPeter Brawley6 Jul
RE: mysql sql questionbruce5 Jul
  • RE: mysql sql questionbruce5 Jul
RE: mysql sql questionQuentin Bennett5 Jul
  • RE: mysql sql questionbruce5 Jul
RE: mysql sql questionQuentin Bennett5 Jul
  • RE: mysql sql questionbruce5 Jul
    • mysql sql files...bruce5 Jul
      • RE: mysql sql files...bruce5 Jul
      • Re: mysql sql files...Paul DuBois5 Jul
    • Re: mysql sql questionJohn Hicks5 Jul
Re: mysql sql questionSGreen7 Jul