You are here: Re: Need script to copy a database and all it's tables « PHP Programming Language « IT news, forums, messages
Re: Need script to copy a database and all it's tables

Posted by Michael Fesser on 07/10/07 16:31

..oO(Robbo)

>My database contains 45 tables the structure of which is evolving as I
>develop. I need a utility that will "read" the structure of this
>database and it's tables and then create an identical database with
>all tables.

The fastest way is to do it on the command line.

Export:
mysqldump -uUsername -p -d Database > tables.sql

Import:
mysql -uUsername -p Database < tables.sql

Replace Username and Database accordingly.

Micha

 

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

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