USE AT YOUR OWN RISK. Backup everything first
Run in phpmyadmin or similar tool. This will populate the next screen with all the tables to be changed. In this example, all tables would be changed to utf8mb4_unicode_ci.
Above sql command will generate alter query for all tables in database. You can copy those all and execute at once. Only change "database_name_here" part to match your database name. if using phpmyadmin, make sure to tick the option to "output full text" on the query returned data, then copy and run that
Run in phpmyadmin or similar tool. This will populate the next screen with all the tables to be changed. In this example, all tables would be changed to utf8mb4_unicode_ci.
SELECT CONCAT("ALTER TABLE `", TABLE_NAME,"` convert to character set utf8mb4 collate utf8mb4_unicode_ci;") AS mySQL
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA="database_name_here"
AND TABLE_TYPE="BASE TABLE"Above sql command will generate alter query for all tables in database. You can copy those all and execute at once. Only change "database_name_here" part to match your database name. if using phpmyadmin, make sure to tick the option to "output full text" on the query returned data, then copy and run that
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2022-10-25 21:31:05