# Beginner question - MySQL db:migrate error

**URL:** <https://www.ruby-forum.com/t/beginner-question-mysql-db-migrate-error/183829>\
**Category:** Rails\
**Created:** [February 21, 2010, 10:52am UTC](https://www.ruby-forum.com/t/beginner-question-mysql-db-migrate-error/183829 "2010-02-21T10:52:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/2bfe46/32.png) [@bbrails](https://www.ruby-forum.com/u/bbrails)\
**Post date:** [February 21, 2010, 10:52am UTC](https://www.ruby-forum.com/t/beginner-question-mysql-db-migrate-error/183829/1 "2010-02-21T10:52:14Z")

</div>

Hi,

I am pretty frustrated with my first attempts to create a simple ruby  
on rails project with mysql.

I get a strange error when I run the rake db:migrate

“NoMethodError: undefined method `ord’ for 1:Fixnum: SHOW TABLES”

Anybody any suggestions what that might be?

Thanks  
bbrails

Mac OS X: 10.5.8  
MySQL: 5.0.83

gem list

\*\*\* LOCAL GEMS \*\*\*

actionmailer (2.3.5, 1.3.6)  
actionpack (2.3.5, 1.13.6)  
actionwebservice (1.2.6)  
activerecord (2.3.5, 1.15.6)  
activeresource (2.3.5)  
activesupport (2.3.5, 1.4.4)  
acts\_as\_ferret (0.4.1)  
BlueCloth (1.0.1)  
capistrano (2.0.0)  
cgi\_multipart\_eof\_fix (2.5.0)  
configuration (1.1.0)  
daemons (1.0.9)  
dnssd (0.6.0)  
faker (0.3.1)  
fastthread (1.0.1)  
fcgi (0.8.7)  
ferret (0.11.4)  
gem\_plugin (0.2.3)  
haml (2.2.19)  
heroku (1.8.0)  
highline (1.2.9)  
hpricot (0.6)  
json\_pure (1.2.0)  
launchy (0.3.5)  
libxml-ruby (0.9.5)  
linecache (0.43)  
mime-types (1.16)  
mocha (0.9.8)  
mongrel (1.1.4)  
mysql (2.8.1)  
needle (1.3.0)  
net-sftp (1.1.0)  
net-ssh (1.1.2)  
populator (0.2.5)  
postgres-pr (0.6.3)  
rack (1.0.1)  
rails (2.3.5, 1.2.6)  
rake (0.8.7, 0.7.3)  
RedCloth (3.0.4)  
rest-client (1.3.1)  
ruby-debug-base (0.10.3)  
ruby-debug-ide (0.4.5)  
ruby-openid (1.1.4)  
ruby-yadis (0.3.4)  
rubygems-update (1.3.5)  
rubynode (0.1.3)  
sqlite3-ruby (1.2.5, 1.2.1)  
termios (0.9.4)  
thoughtbot-factory\_girl (1.2.2)  
thoughtbot-shoulda (2.10.2)

---

<div class="post-metadata">

**Author:** ![bbrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/2bfe46/32.png) [@bbrails](https://www.ruby-forum.com/u/bbrails)\
**Post date:** [February 21, 2010, 11:34am UTC](https://www.ruby-forum.com/t/beginner-question-mysql-db-migrate-error/183829/2 "2010-02-21T11:34:23Z")

</div>

On Sat, Feb 20, 2010 at 4:11 PM, bbrails [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 

First, I would recommend trying something simply like the following:

$ rails test  
$ cd test  
$ script/generate scaffold post title:string body:text  
$ rake db:migrate  
$ script/server

Next, verify that you can properly navigate to the URL,  
[http://localhost:3000/posts](http://localhost:3000/posts)

Finally, posts the results of the above simple experiment. OK?

Good luck,

-Conrad
