You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘USING BTREE

Written by

in

Когда мне mysql заругался на дамп сайта вот такой строкой

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USING BTREECode language: Bash (bash)

Я показал ему магию, уличную консольную магию

sed -i -r 's/\(([^)]+)\) USING BTREE/USING BTREE (\1)/g' backup.sqlCode language: Bash (bash)

После чего дамп съелся наура 🙂

Comments

Один ответ для «You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘USING BTREE»

  1. Аватар пользователя Finnr
    Finnr

    Спасибо, пригодилось

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *