Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292365

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 292365

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>