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.
On 3 June 2010 08:24, binghai [email protected] wrote:
encoding: utf8
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
After installing: gem install mysql,
I try to run rake db:create again.
I get:
: [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…>_<