Bluehost.com Web Hosting $6.95

MySQL backup but only soem tables with a prefix

This is a discussion on MySQL backup but only soem tables with a prefix within the MySQL Database forums, part of the Database Forums category; One of my friend had to mix 2 kind of tables into the same database 'friend_database' using a different prefix (...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-09-2006
Josselin
 
Posts: n/a
Default MySQL backup but only soem tables with a prefix

One of my friend had to mix 2 kind of tables into the same database
'friend_database' using a different prefix (pre1_tables and pre2_tables
).
He would like to backup separatly these 2 kind of tables, but using
phpmyadmin he can't (all or one by one selection.... 200 tables) Is
there any way to find a script that can do the selective backup ?
(then I'll rebuild 2 databases....)

thanks for your help

Joss

Reply With Quote
  #2 (permalink)  
Old 03-09-2006
Bill Karwin
 
Posts: n/a
Default Re: MySQL backup but only soem tables with a prefix

"Josselin" <josselin@wanadoo.fr> wrote in message
news:441030d7$0$20174$8fcfb975@news.wanadoo.fr...
> One of my friend had to mix 2 kind of tables into the same database
> 'friend_database' using a different prefix (pre1_tables and pre2_tables ).
> He would like to backup separatly these 2 kind of tables,


mysqldump allows optional arguments with which you can specify individual
tables to back up. I don't think that it supports any kind of
pattern-matching or wildcards in the table names. You could get a list of
the tables and use a text editor to create two separate mysqldump commands,
for the two sets of tables.

I don't have phpmyadmin installed currently, I'm using MySQL Administrator
when I use a GUI. In this tool, there is no opportunity to use wildcards
for table names when making a backup dump. You get to check off specific
tables.

Regards,
Bill K.


Reply With Quote
  #3 (permalink)  
Old 03-10-2006
Josselin
 
Posts: n/a
Default Re: MySQL backup but only soem tables with a prefix

On 2006-03-09 18:53:00 +0100, "Bill Karwin" <bill@karwin.com> said:

> "Josselin" <josselin@wanadoo.fr> wrote in message
> news:441030d7$0$20174$8fcfb975@news.wanadoo.fr...
>> One of my friend had to mix 2 kind of tables into the same database
>> 'friend_database' using a different prefix (pre1_tables and pre2_tables
>> ).
>> He would like to backup separatly these 2 kind of tables,

>
> mysqldump allows optional arguments with which you can specify
> individual tables to back up. I don't think that it supports any kind
> of pattern-matching or wildcards in the table names. You could get a
> list of the tables and use a text editor to create two separate
> mysqldump commands, for the two sets of tables.
>
> I don't have phpmyadmin installed currently, I'm using MySQL
> Administrator when I use a GUI. In this tool, there is no opportunity
> to use wildcards for table names when making a backup dump. You get to
> check off specific tables.
>
> Regards,
> Bill K.


thanks for your support... I have both MySQL Administrator and
phpmyadmin.... and unfortunatly it's seems to be impossible to
dump/backup tables based on prefix.... (so why prefix are made for...?)
200 tables to check... well time to start !

Joss

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:05 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0