#1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’

前端 未结 12 1245
孤街浪徒
孤街浪徒 2020-11-30 16:27

I have a WordPress website on my local WAMP server. But when I upload its database to live server, I get error

#1273 – Unknown collation: ‘         


        
12条回答
  •  醉话见心
    2020-11-30 17:12

    Late to the party, but in case this happens with a WORDPRESS installation :

    #1273 - Unknown collation: 'utf8mb4_unicode_520_ci

    In phpmyadmin, under export method > Format-specific options( custom export )

    Set to : MYSQL40

    If you will try to import now, you now might get another error message :

    1064 - You have an error in your SQL syntax; .....

    That is because The older TYPE option that was synonymous with ENGINE was removed in MySQL 5.5.

    Open your .sql file , search and replace all instances

    from TYPE= to ENGINE=

    Now the import should go smoothly.

提交回复
热议问题