From: Michael Dykman Date: April 1 2009 2:26pm Subject: Re: Include SQL files List-Archive: http://lists.mysql.com/mysql/216969 Message-Id: <814b9a820904010726k7d573fccgef80863f38d20113@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable No include is possible, but this is done pretty routinely: cat *.sql | mysql ... - michael dykman On Wed, Apr 1, 2009 at 10:19 AM, J=F8rn Dahl-Stamnes wrote: > Hello, > > After googling for an hour I gave up to find a solution. > > Problem: A framework is creating a lot of SQL files that will create the > database. But I'm tired of doing 10-20-30 'mysql -u... < file.sql' eac= h > time I rebuild the model. > > What I want to do is to create a sql file like: > > use foobar; > > include some/dir/file1.sql > include some/dir/file2.sql > ... > and so on. > > Is it possible? > > > -- > J=F8rn Dahl-Stamnes > homepage: http://www.dahl-stamnes.net/dahls/ > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: =A0 =A0http://lists.mysql.com/mysql?unsub=3Dmdykman@gmail= .com > > --=20 - michael dykman - mdykman@stripped - All models are wrong. Some models are useful.