Categories
- Android (5)
- Cloud Computing (10)
- Development (14)
- Linux (35)
- Uncategorized (36)
- WordPress (5)
Tags
Archives
-
Random Posts
Delicious Bookmarks
- Labor Efficiency: The Next Great Internet Disruption 22 hours ago
- Apache HBase 0.92.0 has been released 2012/02/04
- Ceph 2012/02/04
- Maximize virtio-net performance with vhost-net 2012/02/03
- Android-x86 - Porting Android to x86 2012/02/01
- 中国电信将成立云计算公司 践行“天翼云计算”战略 2012/02/01
Google Reader Shares
- Hudson vs. Jenkins: Is it too soon to declare a winner?
- Galaxy Nexus 的 Super AMOLED 屏幕多了 HD,但少了 Plus
- Faenza Icon theme for Gnome 3.2 makes Ubuntu a little more eye candy
- Google 在台湾、香港及新加坡兴建自己的数据中心,一到两年后启用
- 既定的秩序是教育的结果
- Amazon S3 - 566 Billion Objects, 370,000 Requests/Second, and Hiring!
Links
Meta
Monthly Archives: September 2005
Migrate to MySQL 4.1 using unicode
使用MySQL有年头了,受限于MySQL支持的字符集与编码,我以前的应用都是使用gb2312/gbk. 从4.1开始,MySQL正式支持unicode,以下是我的迁移实践。 Scenario:现有的数据库mydb构建在MySQL 4.0.20上,使用gb2312作为缺省字符集,需要将其迁移到MySQL 4.1.14且使用utf8作为其缺省字符集。MySQL 4.0.20 安装在 /opt/mysql 下,使用3306端口MySQL 4.1.14 安装在 /opt/mysql2 下,使用3326端口 Migration: 首先把目前使用gb2312的数据库mydb中的内容使用mysqldump导出: # /opt/mysql/bin/mysqldump -uroot -hlocalhost -pthepasswd -P3306 mydb > /backup/mydb_20050905.sql 接着使用此数据文件来构建目标库mydb_new : Step 1, 使用缺省字符集(utf8)连接MySQL Server,然后使用字符集gb2312来创建目标库mydb_new.# /opt/mysql2/bin/mysql -uroot -hlocalhost -pthepasswd -P3326mysql> create database mydb_new default character … Continue reading
Posted in Uncategorized
Leave a comment