Forum: Ruby on Rails how to change sqlite3 to mysql..??

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
85dabd7adebc63dbdae73e5a6ce603db?d=identicon&s=25 haneef5k (Guest)
on 2009-02-20 17:12
(Received via mailing list)
Hi,
im new to ruby on Rails..i install all ror files..if i try to work in
database there is sqlite3 is default.??..  if i change to mysql  im
getting error...in localhost development side...??
how to change sqlite3 to mysql..?? help pls..??
Bee69cfed999cd13e3bff73d472a39ee?d=identicon&s=25 Hassan Schroeder (Guest)
on 2009-02-20 17:20
(Received via mailing list)
On Fri, Feb 20, 2009 at 8:06 AM, haneef5k <haneef5k@gmail.com> wrote:

> how to change sqlite3 to mysql..??

1) install MySQL
2) install mysql gem
3) edit config/database.yml appropriately
4) if you've already started development, run
       rake db:schema:load
    to install your tables

HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
D188e591eac11021329b8821a5f954c7?d=identicon&s=25 Ar Chron (railsdog)
on 2009-02-20 17:22
If you're just getting started, create your project with:

rails myproject -d mysql
9fd06f0bb22626a61d91ad8296e8f10d?d=identicon&s=25 Leonardo Borges (Guest)
on 2009-02-20 17:23
(Received via mailing list)
Please, be more specific. What error message are u getting?

Anyway, i suspect that it's because u don't have the mysql gem
installed.

Try installing it: gem install mysql
85dabd7adebc63dbdae73e5a6ce603db?d=identicon&s=25 haneef5k (Guest)
on 2009-02-20 17:24
(Received via mailing list)
Thank for reply...

On Feb 20, 9:19 pm, Hassan Schroeder <hassan.schroe...@gmail.com>
85dabd7adebc63dbdae73e5a6ce603db?d=identicon&s=25 haneef5k (Guest)
on 2009-02-20 17:24
(Received via mailing list)
Thank for reply...
85dabd7adebc63dbdae73e5a6ce603db?d=identicon&s=25 haneef5k (Guest)
on 2009-02-20 17:28
(Received via mailing list)
Can u tell me how to install full RoR complete package with default of
database adapter with mysql .?im getting sqlite3 is default???



On Feb 20, 9:19 pm, Hassan Schroeder <hassan.schroe...@gmail.com>
85dabd7adebc63dbdae73e5a6ce603db?d=identicon&s=25 haneef5k (Guest)
on 2009-02-20 17:28
(Received via mailing list)
Can u tell me how to install full RoR complete package with default of
database adapter with mysql .?im getting sqlite3 is default???
Bee69cfed999cd13e3bff73d472a39ee?d=identicon&s=25 Hassan Schroeder (Guest)
on 2009-02-20 19:16
(Received via mailing list)
On Fri, Feb 20, 2009 at 8:27 AM, haneef5k <haneef5k@gmail.com> wrote:
>
> Can u tell me how to install full RoR complete package with default of
> database adapter with mysql .?im getting sqlite3 is default???

Yes, SQLite3 is the current default; if you want to use something else
you need to follow the process I outlined.

HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
Af10464d988bde1b15b1a324237bad84?d=identicon&s=25 Dharmdip Rathod (dharmdip)
on 2009-02-21 12:10
Download edge Instantrails .
and make rails application from command promt

rails -d mysql applicationname
you can able to work with mysql.
85dabd7adebc63dbdae73e5a6ce603db?d=identicon&s=25 haneef5k (Guest)
on 2009-03-01 06:27
(Received via mailing list)
Hi, Schroeder

Can u tell me,? which editor is best for Ruby on Rails..apps??


On Feb 20, 9:19 pm, Hassan Schroeder <hassan.schroe...@gmail.com>
Bee69cfed999cd13e3bff73d472a39ee?d=identicon&s=25 Hassan Schroeder (Guest)
on 2009-03-01 15:49
(Received via mailing list)
On Sat, Feb 28, 2009 at 9:26 PM, haneef5k <haneef5k@gmail.com> wrote:

> Can u tell me,? which editor is best for Ruby on Rails..apps??

The one you're most proficient with  :-)

At various times I use jEdit, NetBeans and vi for Rails development,
all reasonably cross-platform so I don't have to switch mental gears
too much going between Linux and Mac. YMMV,

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
A8ddcc040ef0dcc4f914bbbb8613340d?d=identicon&s=25 Mikaele Pereira (Guest)
on 2012-12-03 23:24
(Received via mailing list)
myproject user$ cd user $ *rails new myproject -d mysql*
say 'no' for all question but for' Overwrite .../myproject/config/*
database.yml*? (enter "h" for help) [Ynaqdh]' say 'yes'
This topic is locked and can not be replied to.