• Resolved capuccinera

    (@capuccinera)


    Installed and uninstalled several times. Also deleted SQL tables after uninstalling manually. Still get this error on the MEC main Page (?page=mec-intro).

    Version 5.12.6

    WordPress-Datenbank-Fehler: [Multiple primary key defined]
    ALTER TABLE <code>wp_mec_events</code> ADD PRIMARY KEY (<code>id</code>), ADD UNIQUE KEY <code>ID</code> (<code>id</code>), ADD UNIQUE KEY <code>post_id</code> (<code>post_id</code>);
    
    WordPress-Datenbank-Fehler: [Duplicate column name 'days']
    ALTER TABLE <code>wp_mec_events</code> ADD <code>days</code> TEXT NULL DEFAULT NULL, ADD <code>time_start</code> INT(10) NOT NULL DEFAULT '0', ADD <code>time_end</code> INT(10) NOT NULL DEFAULT '0';
    
    WordPress-Datenbank-Fehler: [Duplicate column name 'not_in_days']
    ALTER TABLE <code>wp_mec_events</code> ADD <code>not_in_days</code> TEXT NOT NULL DEFAULT '' AFTER <code>days</code>;
    
    WordPress-Datenbank-Fehler: [Multiple primary key defined]
    ALTER TABLE <code>wp_mec_dates</code> ADD PRIMARY KEY (<code>id</code>), ADD KEY <code>post_id</code> (<code>post_id</code>), ADD KEY <code>tstart</code> (<code>tstart</code>), ADD KEY <code>tend</code> (<code>tend</code>);
    
    WordPress-Datenbank-Fehler: [Multiple primary key defined]
    ALTER TABLE <code>wp_mec_occurrences</code> ADD PRIMARY KEY (<code>id</code>), ADD KEY <code>post_id</code> (<code>post_id</code>), ADD KEY <code>occurrence</code> (<code>occurrence</code>);
    
    WordPress-Datenbank-Fehler: [Invalid default value for 'updated_at']
    CREATE TABLE IF NOT EXISTS <code>wp_mec_users</code> ( <code>id</code> int(10) NOT NULL, <code>first_name</code> varchar(255) NOT NULL, <code>last_name</code> varchar(255) NOT NULL, <code>email</code> varchar(127) NOT NULL, <code>reg</code> TEXT NULL DEFAULT NULL, <code>created_at</code> datetime DEFAULT NULL, <code>updated_at</code> datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
    
    WordPress-Datenbank-Fehler: [Table 'eloqua_test.wp_mec_users' doesn't exist]
    ALTER TABLE <code>wp_mec_users</code> ADD PRIMARY KEY (<code>id</code>);
    
    WordPress-Datenbank-Fehler: [Table 'eloqua_test.wp_mec_users' doesn't exist]
    ALTER TABLE <code>wp_mec_users</code> MODIFY <code>id</code> int NOT NULL AUTO_INCREMENT;
    
    WordPress-Datenbank-Fehler: [Table 'eloqua_test.wp_mec_users' doesn't exist]
    ALTER TABLE <code>wp_mec_users</code> AUTO_INCREMENT=1000000;
    
    WordPress-Datenbank-Fehler: [Table 'eloqua_test.wp_mec_users' doesn't exist]
    ALTER TABLE <code>wp_mec_users</code> ADD UNIQUE KEY <code>email</code> (<code>email</code>);
    • This topic was modified 3 years, 6 months ago by capuccinera.
    • This topic was modified 3 years, 6 months ago by capuccinera.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Try installing 5.12.0, I find 5.12.6 and 5.12.5 buggy and causes errors on my site.

    Plugin Contributor webnus

    (@webnus)

    Hi @capuccinera,

    If your data is not important, please do the steps below:

    1. Go to MEC Settings > General – and set enable for “Remove MEC Data on Plugin Uninstall”: https://i.postimg.cc/SKCvmLqL/image.png
    2. Go to WP Plugins Menu > Find MEC and deactivate and delete.
    3. Now again, please install MEC form the WordPress repository.

    Please note: if your data on MEC has important. make sure to get a backup from MEC.

    Please keep us posted.

    Best Regards

    Thread Starter capuccinera

    (@capuccinera)

    @jiberson: Thanks for the tip. I will try that.

    @webnus: I did enable that setting before and just tried again before deactivating and uninstalling. Still the same issue.

    Thread Starter capuccinera

    (@capuccinera)

    Update: Installing 5.12.0 did not solve the issue.

    Plugin Contributor webnus

    (@webnus)

    Hi @capuccinera,

    We’ve check this issue it is not a public issue,
    Maybe this issue related to MySQL version or server configurations, However you can contact us with this email: support@webnus.net about it.

    Best Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Database Error after installing MEC’ is closed to new replies.