Reply to Re: How to import table structure?

Your name:

Reply:


Posted by NC on 10/13/63 11:44

Dave wrote:
>
> I am doing a job to migrate an informix database server to mySQL DB. There
> are 20 12 database which contains 300 tables.
>
> I have made table data move working by using LOAD series SQL commands.
> But it is very slow to copy table structure. Rightnow I create table one by
> using (CREATE TABLE ......... ).
>
> Is there any smart way of importing table structure?

Sure. Put all your CREATE TABLE queries into one text file (let's call
it q.txt) and run the following command line:

mysql -u [username] -p[password] [db_name] < q.txt

Note that there is no whitespace between -p and the password...

Cheers,
NC

[Back to original 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

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