Unix Technical Forum

Installed MySQL - updating charsets

This is a discussion on Installed MySQL - updating charsets within the MySQL forums, part of the Database Server Software category; --> Dear Group, I have a simple question, which answering will clear all my problems. If I have such Variable ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 11:27 AM
pmz
 
Posts: n/a
Default Installed MySQL - updating charsets

Dear Group,

I have a simple question, which answering will clear all my problems.
If I have such Variable values in MySQL 'show variables' output like:

character_set_client latin1
character_set_connection latin1
character_set_database utf8
character_set_filesystem binary
character_set_results latin1
character_set_server utf8
character_set_system utf8
character_sets_dir /usr/local/share/mysql/charsets/
collation_connection latin1_swedish_ci
collation_database utf8_general_ci
collation_server utf8_general_ci

MySQL version: 5.0.45

And I'd like to update all non-utf8 values (ie. latin1 into utf8, or
latin1_swedish_ci into utf8_general_ci), what is the easiest way to do
so? Shall I recompile with special arguments?

Thanks a lot for all help!

All the best,
Przemek M. Zawada

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 11:27 AM
lark
 
Posts: n/a
Default Re: Installed MySQL - updating charsets

== Quote from pmz (przemek.zawada@gmail.com)'s article
> Dear Group,
> I have a simple question, which answering will clear all my problems.
> If I have such Variable values in MySQL 'show variables' output like:
> character_set_client latin1
> character_set_connection latin1
> character_set_database utf8
> character_set_filesystem binary
> character_set_results latin1
> character_set_server utf8
> character_set_system utf8
> character_sets_dir /usr/local/share/mysql/charsets/
> collation_connection latin1_swedish_ci
> collation_database utf8_general_ci
> collation_server utf8_general_ci
> MySQL version: 5.0.45
> And I'd like to update all non-utf8 values (ie. latin1 into utf8, or
> latin1_swedish_ci into utf8_general_ci), what is the easiest way to do
> so? Shall I recompile with special arguments?
> Thanks a lot for all help!
> All the best,
> Przemek M. Zawada


you can start your server with an argument like this:
mysqld --character-set-server=urf8
at the server level. you can also control any single databases's character set at
the database creation time and/or after it is created. all and all, character set
and collation is all the way controllable to the level of attribute (field) of any
given table.

hope this helps.
--
POST BY: lark with PHP News Reader
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com