I am using Fedora 8 in my system and I have installed ruby, rails and
mysql…Can anyone please explain the steps for connecting Ruby on Rails
with MySQL.
Actually I am getting this problem
$rake db.migrate
(in /home/niket/depot)
rake aborted!
Don’t know how to build task ‘db.migrate’
(See full trace by running task with --trace)
Make sure you use a color, not a period → rake db:migrate
Have you setup your database.yml file to point to a Mysql server?
On Jun 19, 5:00 pm, Niketh K. [email protected]
E. Litwin wrote:
Make sure you use a color, not a period → rake db:migrate
Have you setup your database.yml file to point to a Mysql server?
On Jun 19, 5:00�pm, Niketh K. [email protected]
May I Know how we setup database.yml. Sir I have used this command to
configure database.yml as in this way… $ vim
/configure/database.yml…but i am unable to access the contents of
database.yml file.
Can u please ezplain the steps how to read the contents of database.yml.
and after that create a database
Dont mind Sir I am new to Linux and its getting me a bit tough to access
the command prompt
Assuming you are in the root of your project in a terminal session
$ nano config/database.yml
Modify this section as necessary
development:
adapter: mysql
database: [enter an existing db name]
username: [login]
password: [password]
host: [server or localhost]
Ctrl+o → Enter to save changes
Ctrl+x → Quit
On Jun 19, 5:13 pm, Niketh K. [email protected]
try rake db:migrate (the colon is important)
On Jun 20, 2:00 am, Niketh K. [email protected]
Christoph wrote:
try rake db:migrate (the colon is important)
On Jun 20, 2:00�am, Niketh K. [email protected]
I am unable to get access to that file database.yml even though I tried
as
$ nano configure/database.yml…just a blank editor is opening.
How to know the path where is this file stored
On Jun 22, 11:03 pm, Niketh K. [email protected]
wrote:
Christoph wrote:
try rake db:migrate (the colon is important)
On Jun 20, 2:00 am, Niketh K. [email protected]
I am unable to get access to that file database.yml even though I tried
as
$ nano configure/database.yml…just a blank editor is opening.
How to know the path where is this file stored
just poke around the filesystem as you would normally (the file is in
a folder called config, not configure (and you would of course need to
have switched to your application’s directory first))
Fred
Frederick C. wrote:
On Jun 22, 11:03�pm, Niketh K. [email protected]
wrote:
Christoph wrote:
try rake db:migrate (the colon is important)
On Jun 20, 2:00 am, Niketh K. [email protected]
I am unable to get access to that file database.yml even though I tried
as
$ nano configure/database.yml…just a blank editor is opening.
How to know the path where is this file stored
just poke around the filesystem as you would normally (the file is in
a folder called config, not configure (and you would of course need to
have switched to your application’s directory first))
Fred
Thank U for ur reply Fred…
Can u clear my doubts by chatting with me on gmail.
I am new to command prompt and unable to locate the config file.
Or either please add my email id: [email protected]