Когда мне 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)
После чего дамп съелся наура 🙂
Добавить комментарий