Set default collation phpmyadmin
Asked Answered
J

2

5

I am trying to change the default collation in phpmyadmin so that when I create a table, the collation of the columns is utf8_unicode_ci. I have tried the following and it does not work.

[mysqld]
collation_server=utf8_unicode_ci
character_set_server=utf8
default-character-set=utf8

The columns still default to latin1_swedish_ci. Any ideas?

PHPmyadmin 3.5.2 MySQL 5.1.44

Jason answered 29/8, 2012 at 16:47 Comment(1)
By the way, I DID restart MySQL.Jason
B
4

Log into phpMyAdmin. Select your database from the list on the left. Click on "Operations" from the top set of tabs. In the Collation box, choose your new collation from the dropdown menu, then click go.

Bi answered 4/10, 2012 at 3:21 Comment(2)
Who voted this answer up ?? The question is how to set the Default. This answer says how to change an existing database.Hooghly
The question is how to change the default for new tables in a database. This answer addresses that question. This is different than changing the default collation for new databases, which will not affect the collation for new tables in an existing database.Idea
H
0

Log in to phpMyAdmin. Go to "Variables" menu between "Replication" and "Charsets". Then change collation server's variable to `utf8mb4_unicode_ci.

enter image description here

Hardan answered 4/6 at 3:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.