-
-
Save flabernardez/229a9e3379544be55e064693066ffcdc to your computer and use it in GitHub Desktop.
#wordpress #database change charset to utf8mb4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT CONCAT("ALTER TABLE ", TABLE_SCHEMA, '.', TABLE_NAME,' COLLATE utf8mb4_general_ci;') | |
FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='local' AND TABLE_TYPE = 'BASE TABLE'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment