sql script to ccnvert all tables to innodb
This commit is contained in:
parent
4133df6223
commit
668e03d4e5
19
convert_innodb.sql
Normal file
19
convert_innodb.sql
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
|
|
||||||
|
ALTER TABLE `profile` DROP INDEX `pub_keywords` ;
|
||||||
|
ALTER TABLE `profile` DROP INDEX `prv_keywords` ;
|
||||||
|
|
||||||
|
ALTER TABLE `item` DROP INDEX `title` ;
|
||||||
|
ALTER TABLE `item` DROP INDEX `body` ;
|
||||||
|
ALTER TABLE `item` DROP INDEX `allow_cid` ;
|
||||||
|
ALTER TABLE `item` DROP INDEX `allow_gid` ;
|
||||||
|
ALTER TABLE `item` DROP INDEX `deny_cid` ;
|
||||||
|
ALTER TABLE `item` DROP INDEX `deny_gid` ;
|
||||||
|
ALTER TABLE `item` DROP INDEX `tag` ;
|
||||||
|
ALTER TABLE `item` DROP INDEX `file` ;
|
||||||
|
|
||||||
|
|
||||||
|
SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=InnoDB;')
|
||||||
|
FROM information_schema.tables
|
||||||
|
WHERE engine = 'MyISAM';
|
||||||
|
|
Loading…
Reference in a new issue