Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 509 Vote(s) - 3.51 Average
  • 1
  • 2
  • 3
  • 4
  • 5
#1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’

#1
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: ‘utf8mb4_unicode_520_ci’
Reply

#2
In my case it turns out my
new server was running `MySQL 5.5`,
old server was running `MySQL 5.6`.
So I got this error when trying to import the `.sql` file I'd exported from my old server.

MySQL 5.5 does not support `utf8mb4_unicode_520_ci`, but
MySQL 5.6 does.

**Updating to `MySQL 5.6` on the new server solved collation the error !**

If you want to retain MySQL 5.5, you can:
- make a copy of your exported `.sql` file
- replace instances of `utf8mb4unicode520_ci` and `utf8mb4_unicode_520_ci`
...with `utf8mb4_unicode_ci`
- import your updated `.sql` file.
Reply

#3
You can solve this by finding

ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

in your `.sql` file, and swapping it with

ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
Reply

#4
just remove "520_"
`utf8mb4_unicode_520_ci` → `utf8mb4_unicode_ci`
Reply

#5
Open the sql file in your text editor;

**1. Search:** utf8mb4_unicode_ci **Replace:** utf8_general_ci **(Replace All)**

**2. Search:** utf8mb4_unicode_520_ci **Replace:** utf8_general_ci **(Replace All)**

**3. Search:** utf8mb4 **Replace:** utf8 **(Replace All)**

Save and upload!
Reply

#6
find and replace:

utf8mb4_unicode_520_ci

with

utf8_general_ci

in whole sql file
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through