更改大型数据表的字符集的更好方法是哪种? [英] which is the better way to change the character set for huge data tables?
问题描述
在我的生产数据库中,与警报相关的表是使用默认字符集"latin"创建的,因此,在尝试时会出现错误 在表中插入日语字符.我们需要将表和列的默认字符集更改为UTF8. 由于这些表中包含大量数据,Alter命令可能会花费很多时间(在我的本地数据库中使用相同数量的数据花费了5个小时) 并锁定将导致数据丢失的表.我们能否计划一种将字符集更改为UTF8而不丢失数据的机制.
In my production database Alerts related tables are created with default CharSet of "latin", due to this we are getting error when we try to insert Japanese characters in the table. We need to change the table and columns default charset to UTF8. As these tables are having huge data, Alter command might take so much time (it took 5hrs in my local DB with same amount of data) and lock the table which will cause data loss. Can we plan a mechanism to change the Charset to UTF8, without data loss.
更改大型数据表的字符集的更好方法是什么?
which is the better way to change the charset for huge data tables?