Solved

mysql migration from innodb to myisam

Posted on 2010-09-17
10
769 Views
Last Modified: 2012-05-10
I need to migrate my mysql database from my myisam to innodb
But i dont have to do it for all the tables.. For some i would leave it as myisam and the others would be migrated to innodb.
Is there any particular mysql version criteria that i should look for to get the best performance and integrity?
Coud someone let me know of the process....
0
Comment
Question by:pvinodp
  • 5
  • 4
10 Comments
 
LVL 20

Accepted Solution

by:
ChristoferDutz earned 333 total points
ID: 33699423
Well you can do this in the Query Browser (edit table) or via SQL:

ALTER TABLE `schemaname`.`tablename` ENGINE = MyISAM;
0
 

Author Comment

by:pvinodp
ID: 33701071
how can i know if the mysql version Ver 14.12 Distrib 5.0.77 supports innodb or not
0
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 167 total points
ID: 33701103
hi,

  innodb was already available in version 3.23 of mySQL ...
  and yes, that statement works in version 5.x
0
 

Author Comment

by:pvinodp
ID: 33702200
how to export data from mysql database table to a csv file
0
 
LVL 20

Expert Comment

by:ChristoferDutz
ID: 33710633
Here are some links that may be helpfuller than to solve every question for you:
http://en.wikipedia.org/wiki/Recursion (For the formal definition)
http://www.freenetpages.co.uk/hp/alan.gauld/tutrecur.htm (pretty good explanation of the concept)
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:pvinodp
ID: 33725204
How to export the schema to a csv file in mysql???
0
 
LVL 20

Assisted Solution

by:ChristoferDutz
ChristoferDutz earned 333 total points
ID: 33752593
Well you cannot export the schema to csv ... you can export the content of your tables though ... or you export your schema, your data or both to an sql-script:
mysqldump --all-databases -u USER -p > all_databases.sql

above command will create an export of all tables and their content to a sql skript called all_databases.sql
0
 

Author Comment

by:pvinodp
ID: 33772072
How do you save your indexes ?
Can u export them to a file and import them into your new database?
0
 
LVL 20

Expert Comment

by:ChristoferDutz
ID: 33773471
You could have a look at liquibase. This makes really good snapshots of the Database Structure, all Constraints, Indexes ... everything ... except the Data itself, but I think you will be able to do that somehow. I just haven't tried that yet)
http://www.liquibase.org/manual/home
0
 

Author Closing Comment

by:pvinodp
ID: 33822660
This Question has not been fully answered. But the above selected multiple solutions have helped me.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP code to display images from MySQL db on a webpage 1 79
Saving position of jquery sortable portlet to database 11 57
Mysql Crashing Intermittently 16 82
CheckListBox usage 3 51
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Creating and Managing Databases with phpMyAdmin in cPanel.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now