On Nov 3, 10:02 pm, Zovar <[email protected]> wrote:
> Hi there!
>
> I am PHP developer and trying to learn ROR. Currently I am building my
> first Rails website (OS X Snow Leopard, TextMate) and decided to
> switch from sqlite to mysql. After many-many hours of searching the
> internet I managed to install mysql gem. Now I get this error when I
> try to run rake migrations:
>
> rake aborted!
> Mysql::Error: query: not connected: CREATE TABLE `schema_migrations`
> (`version` varchar(255) NOT NULL) ENGINE=InnoDB
>
> I read somewhere that new latest Rails doesn't work with mysql
> properly and I have to reinstall mysql etc etc.
>

What's in your database.yml ? If you cd to your app and run

ruby script/dbconsole

then rails will open up a mysql console using the connection
parameters from your database.yml file, if that doesn't work then
there's definitely something wrong with that configuration file.

> I am seriously tired of this, it just doesn't make any sense. I can
> set up Apache+PHP+MySQL environment literary in minutes, why Rails
> +MySQL takes days??

Because you're new to rails. I can set up  rails and mysql pretty damn
quick but it would probably take me way longer to set up php & mysql
or some java based framework, but that's just to be expected given the
tools I know.

Fred
> Is there a safe stack of Ruby+Rails+MySQL that I
> can just install and concentrate on web development?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to