Mysql 4-5 migration as well as character set migration from latin1 to utf8?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mysql 4-5 migration as well as character set migration from latin1 to utf8?
Hi All,
I have no problem setting up mysql 5 for utf8 (i've read its utf8 by default for mysql 5 however i don't believe this as mysql 5 docs say its still latin1 Swedish as always). The problem i'm having is just how difficult is this, i've been briefly reading into a few sites that say several ways to do this, and then come talk about the requirement of re-indexing everything, well i'm thinking if i iconv everything if that is a correct method and then would it still be able to re-index....
Plus we have some really complicated serialized arrays in the mysql database will things like this be effected??
I don't know a huge amount about mysql but i'm slowly going forward with it, any help is appreciated and i look forwards to your comments.
hi
if you are using apache you can add
AddDefaultCharset utf-8
to the virtual hosts file for the site it has happened to me as well
also you chave to change the charset in mysql with
alter table "tablename" charset=utf8;
it should work
Hi...thanks for the reply..
I'm also under the impression that i will need to transform the current latin1 Swedish data to be utf8 characters...this is i believe very important? And i'm wondering what the best method may be as there appears to be several however people don't seem to be shouting about any method in particular that works excellent every time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.