Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Change collation of database
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / General / Tutorials

2021-03-13 04:57:21
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.
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)
Last edited by MicroMonkey on 2022-10-25 21:31:05
2021-03-24 01:21:24
Also available under “table info” in most popular SQL clients (Windows or Mac), allowing a complete list of available formats to convert tables.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 4
  • Members: 0
  • Guests online: 4
  • Comments: 3
  • Messages: 1,728