Migrate from Drupal 7 fails with mysql 8.0.3 or later: syntax error on select s.* from system

Created on 10 November 2019, about 5 years ago
Updated 1 July 2023, over 1 year ago

In mysql 8.0.3 "system" has become a reserved keyword.

When you load a Drupal 7 database into mysql 8, the migrate module cannot access it. It tries to execute:

select s.* from system;

which fails with: Syntax error or access violation: 1064 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 \'system s\' at line 3: SELECT s.*\nFROM\n{system} s;

I suggest we properly quote every table name send to mysql with backticks so this is solved once and for all.

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
MigrationΒ  β†’

Last updated about 22 hours ago

Created by

πŸ‡³πŸ‡ΏNew Zealand berenddeboer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024