Question : Changing charset on a Mysql database

Hi

I have a Mysql database with the "latin1" charset, and i want to change it to UTF-8, i checked Mysql query browser and control center, and i couldn't find where could i do this.

I remember a shareware that acted similar to Mysql Query Browser that let you change the charset "on the fly", but i can't remember the name, do you know it?, is there a way to change the charset of a DB whitout dumping it and re-upload it?

Thanks

Answer : Changing charset on a Mysql database

sorry Kalvillo for MySQL version 5 or greater this is correct

alter database mydatabase charset=utf8; (as above)

ALTER TABLE tbl_name CONVERT TO CHARACTER SET utf8;   [1]

I just tested this for you and it changes columns with the table, in this case, tbl_name. That should work, and be alot quicker

[1](http://dev.mysql.com/doc/refman/5.0/en/alter-table.html)
Random Solutions  
 
programming4us programming4us