mysqldump except one table

--------------020200080703090103070700
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Dear all,


I am researching about different parameters provided by the *mysqldump*
utility.
It provides a method to dump databases with all tables.

My problem is I want to dump a database having 30 tables except one
table i.e i have to dump only 29 tables.

Is this possible ?

Please guide me how to do this.




Thanks & Best Regards

Adarsh Sharma

--------------020200080703090103070700--
Adarsh Sharma [ Di, 18 Januar 2011 13:48 ] [ ID #2053347 ]

Re: mysqldump except one table

Check the manual? Its here under ignore-table

http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

Quoting Adarsh Sharma <adarsh.sharma [at] orkash.com>:

> Dear all,
>
>
> I am researching about different parameters provided by the
> *mysqldump* utility.
> It provides a method to dump databases with all tables.
>
> My problem is I want to dump a database having 30 tables except one
> table i.e i have to dump only 29 tables.
>
> Is this possible ?
>
> Please guide me how to do this.
>
>
>
>
> Thanks & Best Regards
>
> Adarsh Sharma
>






--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2 [at] m.gmane.org
a.smith [ Di, 18 Januar 2011 13:52 ] [ ID #2053348 ]

Re: mysqldump except one table

--00032557a2ba28ccb6049a1e68d4
Content-Type: text/plain; charset=ISO-8859-1

you can use "--ignore-table" option for this,

mysqldump -u xxxx -pxxxx dbname --ignore-table=dbname.tablename > xyz.sql
you can use this option multiple times to ignore multiple tables.

Rgds,
Jay
On Tue, Jan 18, 2011 at 6:18 PM, Adarsh Sharma <adarsh.sharma [at] orkash.com>wrote:

> Dear all,
>
>
> I am researching about different parameters provided by the *mysqldump*
> utility.
> It provides a method to dump databases with all tables.
>
> My problem is I want to dump a database having 30 tables except one table
> i.e i have to dump only 29 tables.
>
> Is this possible ?
>
> Please guide me how to do this.
>
>
>
>
> Thanks & Best Regards
>
> Adarsh Sharma
>

--00032557a2ba28ccb6049a1e68d4--
jayabharath [ Di, 18 Januar 2011 13:54 ] [ ID #2053349 ]
Datenbanken » gmane.comp.db.mysql.general » mysqldump except one table

Vorheriges Thema: Large table
Nächstes Thema: Innodb table space questions