NYCPHP Meetup

NYPHP.org

[nycphp-talk] How to run a script?

Andrew Yochum andrew at plexpod.com
Wed Jun 8 13:06:00 EDT 2005


On Wed, Jun 08, 2005 at 09:32:06AM -0700, jaime bermudez wrote:
> I have been running the following command
> 
> >mysql -h host -u bookorama -D books -p <
> bookorama.sql
> 
> 
> so I don't have to type over and over my sql scripts .
> The command doesn't work for me and I don't know how
> to do it even when this should be a simple task.
> 
> I am doing this:
> 
> mysql> mysql -h jbe -u root -D jaime -p < jaime.sql;
> I get the following error:
> 
> ERROR 1064 (42000)

You're almost there.  Run the same command at your shell prompt instead
of the mysql prompt.  In other words, don't login to the mysql command
line client first.

HTH,
Andrew

-- 
Andrew Yochum
Plexpod
andrew at plexpod.com
718-360-0879



More information about the talk mailing list