Re: [Rails] unable to create mysql db in rails

407 views
Skip to first unread message

Hassan Schroeder

unread,
Jul 20, 2012, 9:30:47 AM7/20/12
to rubyonra...@googlegroups.com
On Fri, Jul 20, 2012 at 12:11 AM, amature <nirajhir...@gmail.com> wrote:

> so when i used rake db:create

> (<unknown>): could not find expected ':' while scanning a simple key at line
> 14 column 3

So, what is line 14 ?

> ... and should i keep test and production same in config/database.yml ??

The "same" as what?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

amature

unread,
Jul 20, 2012, 11:55:57 AM7/20/12
to rubyonra...@googlegroups.com
The "same" as what? 
   i mean to say test and production code same as in default

So, what is line 14 ?

rake db:create
rake aborted!
(<unknown>): could not find expected ':' while scanning a simple key at line 14 column 3

Tasks: TOP => db:create => db:load_config


i dont know which line or column :(..help me plz and thanks for reply !!

Hassan Schroeder

unread,
Jul 20, 2012, 12:15:45 PM7/20/12
to rubyonra...@googlegroups.com
On Fri, Jul 20, 2012 at 8:55 AM, amature <nirajhir...@gmail.com> wrote:

>>> (<unknown>): could not find expected ':' while scanning a simple key at
>>> line 14 column 3

>> i dont know which line or column :(

Uh, what? Even if you're using a code editor that doesn't show line
numbers, I would hope you can count.

But please, start by installing a suitable editor.

amature

unread,
Jul 21, 2012, 1:13:11 AM7/21/12
to rubyonra...@googlegroups.com
thanks for reply...
i changed 
socket:/tmp/mysql.sock to
socket: /tmp/mysql.sock and thar error has gone but i face new error now..it says

rake aborted!
Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.)
...learning rails in ubuntu has been lot harder than i thought :(...thx 

Hassan Schroeder

unread,
Jul 21, 2012, 9:16:55 AM7/21/12
to rubyonra...@googlegroups.com
On Fri, Jul 20, 2012 at 10:13 PM, amature <nirajhir...@gmail.com> wrote:

> rake aborted!
> Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter`
> (mysql2 is not part of the bundle. Add it to Gemfile.)
> ...learning rails in ubuntu has been lot harder than i thought :(...thx

And it will be hard forever, if you don't read and act on the messages
you're presented with. The above gives you specific actions to take;
have you done them? If not, why not?

Colin Law

unread,
Jul 21, 2012, 4:35:40 PM7/21/12
to rubyonra...@googlegroups.com
On 21 July 2012 06:13, amature <nirajhir...@gmail.com> wrote:
> thanks for reply...
> i changed
> socket:/tmp/mysql.sock to
> socket: /tmp/mysql.sock and thar error has gone but i face new error now..it
> says
>
> rake aborted!
> Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter`
> (mysql2 is not part of the bundle. Add it to Gemfile.)
> ...learning rails in ubuntu has been lot harder than i thought :(...thx

Try railstutorial.org, which is free to use online. You might find it
an easier way to get started as it leads you through the basic
principles one step at a time.

Colin

>
>
> On Friday, July 20, 2012 10:00:45 PM UTC+5:45, Hassan Schroeder wrote:
>>
>> On Fri, Jul 20, 2012 at 8:55 AM, amature <nirajhir...@gmail.com>
>> wrote:
>>
>> >>> (<unknown>): could not find expected ':' while scanning a simple key
>> >>> at
>> >>> line 14 column 3
>>
>> >> i dont know which line or column :(
>>
>> Uh, what? Even if you're using a code editor that doesn't show line
>> numbers, I would hope you can count.
>>
>> But please, start by installing a suitable editor.
>>
>> --
>> Hassan Schroeder ------------------------ hassan.s...@gmail.com
>> http://about.me/hassanschroeder
>> twitter: @hassan
>
> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/3VmCvtMeKaQJ.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages