Re: [Rails] Rails and MySQL woes
On 6 December 2011 20:42, stephen d. <lists@ruby-forum.com> wrote:
> Hi,
>
> I'm new to Rails and can't seem to get it working with MySQL.
>
> I am running Ruby 1.9.3, Rails 3.1.3, and MySQL 5.5.17 (windows 7
> 64bit).
>
> I create the most basic rails project (rails generate demo index,
> uncomment the last line of the routs.rb file), run the sever and
> navigate to page and get:
>
> ActiveRecord::ConnectionNotEstablished
Some questions:
Have you setup the database name username and password in database.yml?
Have you created the database
rake db:create
and run the migrations (if any)
rake db:migrate
Are you able to access the database using whatever mysql interface is
available for windows?
Note that rails expects there to be a database even if you have not
got any tables in it yet.
Colin
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home