Hi all, I am new to ROR. I have wamp all ready to go, I''d like to use its mysql for ROR so that I can access the database from phpmyadmin. How should I do that? Here is what I have in database.yml: development: adapter: mysql encoding: utf8 reconnect: false database: my_database pool: 5 username: root password: host: localhost port: 3306 socket: /tmp/mysql.sock When I run rake db:create, I get: The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. rake aborted! Thanks a lot. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 3 June 2010 08:24, binghai <baihoward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I am new to ROR. I have wamp all ready to go, I''d like to use its > mysql for ROR so that I can access the database from phpmyadmin. > How should I do that? > > Here is what I have in database.yml: > > development: > adapter: mysql > encoding: utf8 > reconnect: false > database: my_database > pool: 5 > username: root > password: > host: localhost > port: 3306 > socket: /tmp/mysql.sock > > When I run rake db:create, I get: > The bundled mysql.rb driver has been removed from Rails 2.2. Please > install the mysql gem and try again: gem install mysql. rake aborted!So what happened when you tried to install the mysql gem as suggested? If on Ubuntu or similar it should actually be sudo gem install mysql. 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
After installing: gem install mysql, I try to run rake db:create again. I get: <main>: [BUG] Segmentation fault ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32] -- control frame ---------- c:0001 p:0000 s:0002 b:0002 l:001664 d:001664 TOP --------------------------- -- Ruby level backtrace information----------------------------------------- [NOTE] You may encounter a bug of Ruby interpreter. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html This application has requested the Runtime to terminate it in an unusual way. Please contact the application''s support team for more information. Apparently the interpreter crashes....>_< On Jun 3, 12:54 am, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 3 June 2010 08:24, binghai <baihow...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi all, > > > I am new to ROR. I have wamp all ready to go, I''d like to use its > > mysql for ROR so that I can access the database from phpmyadmin. > > How should I do that? > > > Here is what I have in database.yml: > > > development: > > adapter: mysql > > encoding: utf8 > > reconnect: false > > database: my_database > > pool: 5 > > username: root > > password: > > host: localhost > > port: 3306 > > socket: /tmp/mysql.sock > > > When I run rake db:create, I get: > > The bundled mysql.rb driver has been removed from Rails 2.2. Please > > install the mysql gem and try again: gem install mysql. rake aborted! > > So what happened when you tried to install the mysql gem as suggested? > If on Ubuntu or similar it should actually be sudo gem install mysql. > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.