# Db:migrate do not run correctly

**URL:** <https://www.ruby-forum.com/t/db-migrate-do-not-run-correctly/188023>\
**Category:** Rails\
**Created:** [May 4, 2010, 12:01pm UTC](https://www.ruby-forum.com/t/db-migrate-do-not-run-correctly/188023 "2010-05-04T12:01:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziburudebian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/eb8c5e/32.png) [@ziburudebian](https://www.ruby-forum.com/u/ziburudebian)\
**Post date:** [May 4, 2010, 12:01pm UTC](https://www.ruby-forum.com/t/db-migrate-do-not-run-correctly/188023/1 "2010-05-04T12:01:06Z")

</div>

Hi,

When i run this command i have an error :

> rake db:migrate --trace  
> rake aborted!  
> NoMethodError: undefined method `ord’ for 0:Fixnum: SET NAMES ‘utf8’

see the log in attached file.  
my database.yml file is here :

* * *

# MySQL. Versions 4.1 and 5.0 are recommended.

# 

development:  
adapter: mysql  
encoding: utf8  
reconnect: false  
database: annuaire\_development  
pool: 5  
username: root  
password:  
host: 127.0.0.1

test:  
adapter: mysql  
encoding: utf8  
reconnect: false  
database: annuaire\_test  
pool: 5  
username: root  
password:  
host: 127.0.0.1

production:  
adapter: mysql  
encoding: utf8  
reconnect: false  
database: annuaire\_production  
pool: 5  
username: root  
password:  
host: 127.0.0.1

* * *

## Thanks

## My config :

WampServer 2.0 with MySQL 5.0.51a  
Aptana 2.0.4  
Ruby 1.8.5  
Gems:  
actionmailer (2.3.4, 2.3.2)  
actionpack (2.3.4, 2.3.2)  
activerecord (2.3.4, 2.3.2)  
activeresource (2.3.4, 2.3.2)  
activesupport (2.3.4, 2.3.2)  
cgi\_multipart\_eof\_fix (2.5.0)  
fastthread (1.0.1)  
gem\_plugin (0.2.3)  
linecache (0.43)  
mongrel (1.1.5)  
mysql (2.8.1, 2.7.3)  
rack (1.0.0)  
rails (2.3.4, 2.3.2)  
rake (0.8.7)  
ruby-debug-base (0.10.3)  
ruby-debug-ide (0.4.5)  
sqlite3-ruby (1.2.1)
