MySQL error USING BTREE -


i have mysql database have downloaded online server , trying import on local mysql not working showing syntax error. cannot find errors in query

this error:

1064 - have error in sql syntax; check manual corresponds mysql server version right syntax use near 'using btree, key idx_p_id (p_id) using btree, key ' @ line 27

and query:

  primary key (`a_id`),   unique key `idx_a_id` (`a_id`) using btree,   key `idx_p_id` (`p_id`) using btree,   key `idx_m_id` (`m_id`) ) engine=innodb auto_increment=1 default charset=latin1; 

your mysql server version older , not compatible 1 dump created. try upgrade mysql server or export dump using --compatible option of mysqldump.

you need this:

mysqldump --compatible=mysql40 ... 

you have option import dump newer server can create locally , re-export there using comopatible option.

i have seen people search , replacing stuff in mysql dump files ugly approach, might work if have incompatibility.

also format text little bit , accept answers if want people you.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -