Web Hosting Talk







View Full Version : MySQL Collation?


ChrisF79
11-08-2006, 06:10 PM
Greetings,

I just went to create a new database on my server through phpmyadmin and I had a new option for Collation. I looked through the manual at mysql's site, but I can't figure out this simple question. Before I had the collation option, I just made my tables and they worked fine. Now, what should I set it to? The database is going to hold normal things like usernames, passwords, etc... normal website stuff. There will be tutorials in there as well.

Any suggestion as to what the collation should be set to would be VERY helpful. Thanks!

01globalnet
11-08-2006, 06:36 PM
If you are going to store only English characters then select a latin1 collation (latin1_swedish etc.).

azizny
11-08-2006, 06:42 PM
Always use utf-8

this will insure that all languages are inserted no matter what site type it is

Peace,

ChrisF79
11-08-2006, 08:14 PM
UTF8-unicode or UTF8-bin?

riscphree
11-09-2006, 12:45 AM
unicode.

Read this if you need a better understanding:

The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) http://www.joelonsoftware.com/articles/Unicode.html

ChrisF79
11-09-2006, 02:53 PM
Great article and thanks for the help!