When I dump the schema of my database
mysqldump --no-data my_db > schema.sql
I get lines like this
KEY `index_tbl_on_col` (`col`)
but I want lines like this
KEY `index_tbl_on_col` (`col`) USING BTREE
The indexes in question do, in fact, have Index_type = 'BTREE'.
show index from tbl;
| Table | Key_name | Index_type |
+-------+---------------+------------+
| tbl | ix_tbl_on_col | BTREE |
I have tried a variety of mysqldump options including using --skip-opt --create-options together.
I am using mysqldump 5.6.26 from homebrew.
mysqldump --version
mysqldump Ver 10.13 Distrib 5.6.26, for osx10.10 (x86_64)
USING BTREE. I remember years ago that older versions mysqldump used to but they may have been source compiled. The standard versions don't do this. – RolandoMySQLDBA Sep 24 '15 at 17:25USING BTREE. – RolandoMySQLDBA Sep 24 '15 at 20:26