• User Attivo

    Errore importazione database

    Salve a tutti,
    devo fare una copia di un sito su un server di prova e ho seguito la solita procedura (esportazione db, copia dei file wp, modifica url nel db, importazione del db nel nuovo server, ...).
    Quando cerco di importare il db modificato nel nuovo server, phpmyadmin mi dà questo errore:

    query SQL:

    CREATE TABLE IF NOT EXISTS wp_commentmeta (

    • meta_id BIGINT( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT ,*
    • comment_id BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT '0',*
    • meta_key VARCHAR( 255 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,*
    • meta_value LONGTEXT COLLATE utf8mb4_unicode_ci,*
      PRIMARY KEY ( meta_id ) ,
      KEY comment_id ( comment_id ) ,
      KEY meta_key ( meta_key ( 191 ) )
      ) ENGINE = MYISAM DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci AUTO_INCREMENT =1425;

    Messaggio di MySQL: Documentazione

    #1273 - Unknown collation: 'utf8mb4_unicode_ci'

    Ne so ben poco di mysql, qualcuno potrebbe aiutarmi?
    Grazie!
    H.


  • User Attivo

    ...ho trovato una soluzione che mi ha risolto tutto, sembra che sia un problema di versione di mysql.
    Per l'utilità di tutti, la riporto qui sotto. Quando si esporta il file, bisogna seguire i seguenti accorgimenti:

    1. Click the "Export" tab for the database

    2. Click the "Custom" radio button

    3. Go the section titled "Format-specific options" and change the dropdown for "Database system or older MySQL server to maximize output compatibility with:" from NONE to MYSQL40.

    4. Scroll to the bottom and click "GO".

    Hikari


  • User Attivo