You are here: Re: How do I run an sql file? « PHP SQL « IT news, forums, messages
Re: How do I run an sql file?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация