# Problem with instant rails

**URL:** <https://www.ruby-forum.com/t/problem-with-instant-rails/159758>\
**Category:** Rails\
**Created:** [February 8, 2009, 12:56pm UTC](https://www.ruby-forum.com/t/problem-with-instant-rails/159758 "2009-02-08T12:56:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![priyankeshu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e19adc/32.png) [@priyankeshu](https://www.ruby-forum.com/u/priyankeshu)\
**Post date:** [February 8, 2009, 12:56pm UTC](https://www.ruby-forum.com/t/problem-with-instant-rails/159758/1 "2009-02-08T12:56:47Z")

</div>

hi thre i have just started learning ROR (following video tutorial by  
VTC) but on the video they were teaching on MAC, i thought i can  
follow along on window with instantrails… it was going fine

i got the instantrails set up and yes i can test apps like mycookbook  
127.0.0.1:3000 and like so…

so far so good…

but after that when in the video tutorial the guy started creating a  
new database for a new project it created in some Mac program so i was  
not able to follow exactly on windows

however, i did went in to Phpmyadmin to create the database for it,  
now i do not know … how to link that database to my app… (in  
the .yml file that is) also the database i had created has table names  
that do not end with \_development (that’s i think the convention)

however, in the video tutorial… after the guy created the database,  
all the schema information automatically got into .yml file of the  
database.

i have no idea how to link my app with phpmyadmin…

any ideas what i am doing wrong?

---

<div class="post-metadata">

**Author:** ![priyankeshu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e19adc/32.png) [@priyankeshu](https://www.ruby-forum.com/u/priyankeshu)\
**Post date:** [February 8, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/problem-with-instant-rails/159758/2 "2009-02-08T15:46:30Z")

</div>

ending with \_development is the convention for the NAME of the dev db  
not the tables

---

<div class="post-metadata">

**Author:** ![priyankeshu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e19adc/32.png) [@priyankeshu](https://www.ruby-forum.com/u/priyankeshu)\
**Post date:** [February 8, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/problem-with-instant-rails/159758/3 "2009-02-08T16:02:54Z")

</div>

Create the table in phpmyadmin as you suggest, name the database  
something\_development. It is then linked to the rails application by  
config\database.yml. You will need something in there like:

development:  
adapter: mysql  
database: something\_development  
username: username  
password: password  
host: localhost

where username and password are those configured for mysql in phpmyadmin  
(in  
the Priviliges link from the phpmyadmin first page). Unless you have  
changed  
it then username root and no password will probably work.

2009/2/8 stretch [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![priyankeshu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e19adc/32.png) [@priyankeshu](https://www.ruby-forum.com/u/priyankeshu)\
**Post date:** [February 9, 2009, 1:50pm UTC](https://www.ruby-forum.com/t/problem-with-instant-rails/159758/4 "2009-02-09T13:50:15Z")

</div>

Yeah, use the rake tasks

Cheers, Sazima

---

<div class="post-metadata">

**Author:** ![priyankeshu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e19adc/32.png) [@priyankeshu](https://www.ruby-forum.com/u/priyankeshu)\
**Post date:** [February 9, 2009, 1:31am UTC](https://www.ruby-forum.com/t/problem-with-instant-rails/159758/5 "2009-02-09T01:31:22Z")

</div>

Another approach. To create the app with mysql in database.yml

rails something -d mysql

Get to the root directory of the app and create the dev db in  
specified in database.yml (assuming username and password will work  
for the database)

cd something  
rake db:create

Then add a posts table

./script/generate model post  
rake db:migrate
