Hi,
I’m attempting to follow this tutorial:
To create a simple RoR app connected to a MySQL database. When I get
to the point where I have to run “rake db:create” I get the error
“Protocol error - db:migrate”. E.g:
root@ubi:/home/greg/dev/library# rake db:create
create
Protocol error - db:create
root@ubi:/home/greg/dev/library#
I have no idea what this means and can find no information after
extensive googling. I’ll provide as much info about my environment/
setup as I know how to provide…
Any help or suggestions as to how I can figure this out? Please…
Thanks,
Greg
==============================================
I am running Ubuntu:
root@ubi:/home/greg/dev/library# uname -a
Linux ubi 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC
2009 i686 GNU/Linux
I am using Mysql server version 5.0
root@ubi:/home/greg/docs/procedis/dev/library# mysql -V
mysql Ver 14.12 Distrib 5.0.75, for debian-linux-gnu (i486) using
readline 5.2
I am using ruby 1.8.7
root@ubi:/home/greg/docs/procedis/dev/library# ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
I have the following:
*** LOCAL GEMS ***
actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
mysql (2.7)
rails (2.3.2)
rake (0.8.7)
This is my database yml file:
root@ubi:/home/greg/dev/library# more config/database.yml
development:
adapter: mysql
encoding: utf8
database: library_development
pool: 5
username: root
password: xxxxxxxx
socket: /var/run/mysqld/mysqld.sock
root@ubi:/home/greg/dev/library#
(I have also tried with “host: localhost” instead of socket)
I am able to connect to the mysql database using the dbconsole:
root@ubi:/home/greg/dev/library# ruby script/dbconsole
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 37
Server version: 5.0.75-0ubuntu10.2 (Ubuntu)
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
mysql>