Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
change storage engine on all tables in database
Old 11-14-2006, 06:16 PM change storage engine on all tables in database
davlam's Avatar
Experienced Talker

Posts: 47
Trades: 0
Hi,

i have a database i have just imported into 5.0.24. Looking at it the tables are either myisam or innodb and character set latin_swedish_ci.

I want to set them all to myisam and utf8_bin.

I am using phpmyadmin 2.9.02.

Can i automate this as i will have to do this a number of times before i import the final database when i go live with a migrated forum.

cheers,


btw : consider me a total novice.
__________________

Please login or register to view this content. Registration is FREE
photography services, galleries, blog and forums.
davlam is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-16-2006, 11:39 PM Re: change storage engine on all tables in database
Skilled Talker

Posts: 63
Trades: 0
Depends on what OS you are on, you can probably write some bash script to do a mysqldump and re-import them. From my lack of experience of changing charater sets here is the safest way to do so.

First, backup, backup and more backup of your current data.

Second, do a mysqldump of all data structure; go in and change the character set and engine of each table. Also be careful if there any foreign or innodb support feature that is not supported in MyISAM.

Thrid, mysqldump only the data and have it import to you new database with the new structure.

Hope this helps
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
saidev is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to change storage engine on all tables in database
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09645 seconds with 12 queries