Rails 3:更改现有mysql数据库的字符集和排序规则 [英] Rails 3: Change charset and collation of an existing mysql database

查看:86
本文介绍了Rails 3:更改现有mysql数据库的字符集和排序规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Rails迁移或其他选项来更改现有Mysql数据库的字符集和排序规则?!

Is it possible to change the charset and collation of an existing Mysql database using Rails migrations or other options ?!

最初配置数据库字符集&的最佳方法是什么?排序规则?!

What's the best way to initially configure database charset & collation ?!

推荐答案

我使用了

I used Migrating your Rails application to Unicode and changed:

"MySQL"时

when 'MySQL'

当"Mysql2"时

when 'Mysql2'

这篇关于Rails 3:更改现有mysql数据库的字符集和排序规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆