• Hi.
    I have a syntax error with many wf tables importing database as follow.

    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS 00000000000000000000000000000000, blockedTime bigint(20) NOT NULL,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @mllapan, thanks for reaching out.

    Are you using a backup/migration tool or plugin to import the WordPress database? If so, I would check in with their support to see if the SQL on import is getting malformed or isn’t compatible with your version of MariaDB.

    Our lib/wfSchema.php file including the code for the wfBlocks7 table contains syntax that looks similar to the output you’ve shown above but the IP column line doesn’t use keyword “AS”, which is shown as part of your error message.

    IP binary(16) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0',
    blockedTime bigint(20) NOT NULL,

    Let us know what you find out,
    Peter.

    Thread Starter mllapan

    (@mllapan)

    Hi, wfpeter.

    I am exporting database via phpmyadmin as a sql.

    11.8.6-MariaDB

    Everything works even without this, but I guess it resets blocked IPs and stuff in plugin, and I have noticed it resets the license as well.

    Plugin Support wfpeter

    (@wfpeter)

    Thanks for clarifying @mllapan.

    If the database is being exported/imported through phpMyAdmin on MariaDB, this sounds more like a backup/export compatibility issue than a Wordfence plugin issue.

    It might still be worth checking-in with your hosting provider if they support the phpMyAdmin and MariaDB installations on your server to see whether the export is being generated correctly.

    Thanks again,
    Peter.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.