Rake db:create can not create new database on MySql

I am using jruby 1.4.0 with jdbcmysql as adapter, when I try to create a
new
database on MySQL server by using: rake db:create. The script runs
without
anything errors, however there is no any new database created on the
server.
I have to manually create new database. After new database creates on
the
MySQL server, launch rake db:migrate. The tables can be created on the
new
database. Does jruby 1.4.0 support rake db:create with jdbcmysql as
adapter?
Thanks for your comments.

Kevin


View this message in context:
http://old.nabble.com/rake-db%3Acreate-can-not-create-new-database-on-MySql-tp27129851p27129851.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I’ve had the same issue with previous releases of jruby, but can’y
remember
which ones.
This is not a new issue.
Stefan

Jay

I think there is a new mysqljdbc adapter. Iremember nick seiger post
something about this. This is not a problem with jruby per se but with
the active record adapter stuff. Make sure you have the latest.
On Jan 12, 2010, at 2:52 PM, Stefan Magnus Landrø
<[email protected]

On Tue, Jan 12, 2010 at 9:21 PM, Jay McGaffigan [email protected]
wrote:

I think there is a new mysqljdbc adapter. Iremember nick seiger post
something about this. This is not a problem with jruby per se but with the
active record adapter stuff. Make sure you have the latest.

This one:
http://blog.nicksieger.com/articles/2009/10/12/fresh-0-9-2-activerecord-jdbc-adapter-release

Thanks,
–Vladimir


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I solved this issue just now.
Edit the file “rails-2.3.x\lib\tasks\databases.rake”, replace all the
string “when ‘mysql’” with “when ‘jdbcmysql’”, and it will be OK.