![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Hello all, I need to change the storage engine of an existing table from MyIsam to InnoDB. Can I do this by one alter tabel statement (if yes how?) or is the best aproach create a backup, drop the table re-create the table but then with the InnoDB type and then insert the backup? Thanks for your help Nick | |||
| Advertisements |
| | #2 | ||
| Gordon Burditt wrote: >> I need to change the storage engine of an existing table from MyIsam >> to InnoDB. Can I do this by one alter tabel statement (if yes how?) >> or is the best aproach create a backup, drop the table re-create >> the table but then with the InnoDB type and then insert the backup? > > ALTER TABLE foo ENGINE=InnoDB; > > This works for MySQL 5. I believe some earlier versions used > Type= instead of ENGINE= . Yup, ALTER TABLE `table_name` TYPE = innodb -- Rik Wasmus | |||
| | #3 | ||
| thanks all "Rik" <luiheidsgoeroe@hotmail.com> schreef in bericht news:e3tsg7$sci$1@netlx020.civ.utwente.nl... > Gordon Burditt wrote: >>> I need to change the storage engine of an existing table from MyIsam >>> to InnoDB. Can I do this by one alter tabel statement (if yes how?) >>> or is the best aproach create a backup, drop the table re-create >>> the table but then with the InnoDB type and then insert the backup? >> >> ALTER TABLE foo ENGINE=InnoDB; >> >> This works for MySQL 5. I believe some earlier versions used >> Type= instead of ENGINE= . > > Yup, ALTER TABLE `table_name` TYPE = innodb > -- > Rik Wasmus > > | |||
| Featured Websites | ||||
|
![]() |
| Tags: change, engine, storage |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MyDrive.ch, 1GB online storage, plz check compatibility | gamerakel | Website review | 1 | 08-05-2007 5:43 PM |
| Data storage 001 instead of 1 | Piotr | Database | 0 | 07-01-2007 7:38 PM |
| Storage Card | Charles Turner | GPS | 0 | 06-12-2007 5:17 PM |
| iPAQ Navigation & Storage Card | Charles Turner | GPS | 0 | 06-12-2007 5:13 PM |
| If you're looking for a smooth MP3 player with a huge storage capacity | Rescue | Ebay Technical Questions | 0 | 05-31-2007 10:00 AM |
| Featured Websites | ||||
|