Can't import mysql.initial (#1215 error)

Issue #49 resolved
Alban created an issue

Hello,

I can’t import “mysql.initial.sql”, I have the #1215 error on PhpMyAdmin.

Comments (7)

  1. Alban reporter

    Hello,

    The problem will come from these two lines :

    CONSTRAINT fk_user_id FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE,
    CONSTRAINT fk_identity_id FOREIGN KEY (iid) REFERENCES identities(identity_id) ON DELETE CASCADE ON UPDATE CASCADE,
    

    Any idea ?

  2. Boris Gulay repo owner

    Looks like you are importing SQL file into empty database.

    You should import it into existing database of roundcube. There shold be tables referenced in this constraints.

  3. Alban reporter

    Hello,
    You are right ! I didn't put the prefix of my tables, it works now.

    On the other hand, how to make the identity select box menu appear on my theme (I do not use the Larry theme) ?

  4. Log in to comment