
| View previous topic :: View next topic |
| Author |
Message |
tony chen Posted via mailing list.
|
Posted: Thu Oct 09, 2008 7:11 am Post subject: db create ERROR in "Creating a Rails 2.0 Ruby Weblog in 10 Minutes" |
|
|
Hey guys,
I'm new to both ruby on rails AND netbeans. I started following the tutorial
http://blogs.sun.com/divas/entry/creating_a_rails_2_0
and updated my netbeans with
ruby 1.8.6
rails 2.0
and then when following the tutorial and I get to the part where i'm creating the db....Run Rake Task > db > create. I get the following error
(in C:/Documents and Settings/Administrator/Desktop/rubyweblog)
Couldn't create database for {"encoding"=>"utf8", "username"=>"tony", "adapter"=>"mysql", "host"=>"localhost", "password"=>"tony", "database"=>"rubyweblog_development"}, charset: utf8, collation: utf8_general_ci (if you set the charset manually, make sure you have a matching collation). Any help would be greatly appreciated!
Thanks!
Tony
PS My yml file is very basic with the following
development:
adapter: mysql
encoding: utf8
database: rubyweblog_development
username: tony
password: tony
host: localhost
test:
adapter: mysql
encoding: utf8
database: rubyweblog_test
username: tony
password: tony
host: localhost
production:
adapter: mysql
encoding: utf8
database: rubyweblog_production
username: tony
password: tony
host: localhost |
|
| Back to top |
|
 |
rest Posted via mailing list.
|
Posted: Tue Oct 14, 2008 5:05 am Post subject: db create ERROR in "Creating a Rails 2.0 Ruby Weblog in 10 Minutes" |
|
|
I'm getting this same error. I'd appreciate hearing about how you solve this
problem. Thanks.
gk
tonylc wrote:
| Quote: |
Hey guys,
I'm new to both ruby on rails AND netbeans. I started following the
tutorial
http://blogs.sun.com/divas/entry/creating_a_rails_2_0
and updated my netbeans with
ruby 1.8.6
rails 2.0
and then when following the tutorial and I get to the part where i'm
creating the db....Run Rake Task > db > create. I get the following error
(in C:/Documents and Settings/Administrator/Desktop/rubyweblog)
Couldn't create database for {"encoding"=>"utf8", "username"=>"tony",
"adapter"=>"mysql", "host"=>"localhost", "password"=>"tony",
"database"=>"rubyweblog_development"}, charset: utf8, collation:
utf8_general_ci (if you set the charset manually, make sure you have a
matching collation). Any help would be greatly appreciated!
Thanks!
Tony
PS My yml file is very basic with the following
development:
adapter: mysql
encoding: utf8
database: rubyweblog_development
username: tony
password: tony
host: localhost
test:
adapter: mysql
encoding: utf8
database: rubyweblog_test
username: tony
password: tony
host: localhost
production:
adapter: mysql
encoding: utf8
database: rubyweblog_production
username: tony
password: tony
host: localhost
|
--
View this message in context: http://www.nabble.com/db-create-ERROR-in-%22Creating-a-Rails-2.0-Ruby-Weblog-in-10-Minutes%22-tp19893635p19967100.html
Sent from the NetBeans Ruby Users mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
John Posted via mailing list.
|
Posted: Tue Oct 14, 2008 9:14 am Post subject: db create ERROR in "Creating a Rails 2.0 Ruby Weblog in 10 Minutes" |
|
|
sure it's something simple, hope you fix it,
on a later note i should probably post my blogging engine to github, it runs fine on rails 2.1.1 / ruby 1.8.7,
will let you know when i do,
John.
www.red91.com
2008/10/14 rest <address-removed ([email]address-removed[/email])>
| Quote: |
I'm getting this same error. I'd appreciate hearing about how you solve this
problem. Thanks.
gk
tonylc wrote:
| Quote: |
Hey guys,
I'm new to both ruby on rails AND netbeans. I started following the
tutorial
http://blogs.sun.com/divas/entry/creating_a_rails_2_0
and updated my netbeans with
ruby 1.8.6
rails 2.0
and then when following the tutorial and I get to the part where i'm
creating the db....Run Rake Task > db > create. I get the following error
(in C:/Documents and Settings/Administrator/Desktop/rubyweblog)
Couldn't create database for {"encoding"=>"utf8", "username"=>"tony",
"adapter"=>"mysql", "host"=>"localhost", "password"=>"tony",
"database"=>"rubyweblog_development"}, charset: utf8, collation:
utf8_general_ci (if you set the charset manually, make sure you have a
matching collation). Any help would be greatly appreciated!
Thanks!
Tony
PS My yml file is very basic with the following
development:
adapter: mysql
encoding: utf8
database: rubyweblog_development
username: tony
password: tony
host: localhost
test:
adapter: mysql
encoding: utf8
database: rubyweblog_test
username: tony
password: tony
host: localhost
production:
adapter: mysql
encoding: utf8
database: rubyweblog_production
username: tony
password: tony
host: localhost
|
--
View this message in context: http://www.nabble.com/db-create-ERROR-in-%22Creating-a-Rails-2.0-Ruby-Weblog-in-10-Minutes%22-tp19893635p19967100.html
Sent from the NetBeans Ruby Users mailing list archive at Nabble.com.
([email]address-removed[/email])
([email]address-removed[/email])
|
--
John Griffiths
» email: address-removed ([email]address-removed[/email])
» skype: sgmuse
» blog: http://www.red91.com |
|
| Back to top |
|
 |
Chris Kutler Posted via mailing list.
|
Posted: Tue Oct 14, 2008 4:04 pm Post subject: db create ERROR in "Creating a Rails 2.0 Ruby Weblog in 10 Minutes" |
|
|
Hello Tony,
That is my blog. Sorry I took so long to reply. I have some questions
for you.
What is your operating system?
Can you open a terminal window on the root folder (rubyweblog) of the
project and try this command:
rake db:create
Do you get any error messages?
It looks as if MySQL or some other internal software has a problem with
UTF8. Did you set the encoding to UTF8, or was that in the database.yml
file created by the IDE?
tony chen wrote:
| Quote: | Hey guys,
I'm new to both ruby on rails AND netbeans. I started following the
tutorial
http://blogs.sun.com/divas/entry/creating_a_rails_2_0
and updated my netbeans with
ruby 1.8.6
rails 2.0
and then when following the tutorial and I get to the part where i'm
creating the db....Run Rake Task > db > create. I get the following
error
(in C:/Documents and Settings/Administrator/Desktop/rubyweblog)
Couldn't create database for {"encoding"=>"utf8", "username"=>"tony",
"adapter"=>"mysql", "host"=>"localhost", "password"=>"tony",
"database"=>"rubyweblog_development"}, charset: utf8, collation:
utf8_general_ci (if you set the charset manually, make sure you have a
matching collation). Any help would be greatly appreciated!
Thanks!
Tony
PS My yml file is very basic with the following
development:
adapter: mysql
encoding: utf8
database: rubyweblog_development
username: tony
password: tony
host: localhost
test:
adapter: mysql
encoding: utf8
database: rubyweblog_test
username: tony
password: tony
host: localhost
production:
adapter: mysql
encoding: utf8
database: rubyweblog_production
username: tony
password: tony
host: localhost
|
|
|
| Back to top |
|
 |
sutter2k
Joined: 19 Jan 2009 Posts: 1
|
Posted: Mon Jan 19, 2009 4:31 am Post subject: I think this is a bug in the shipped version of rails |
|
|
see
http://dev.rubyonrails.org/changeset/7718
| Quote: | * db:create works with remote databases whereas db:create:all only creates
4 databases on localhost. #9753 [Trevor Wennblom] |
|
|
| Back to top |
|
 |
sherpa99
Joined: 28 Feb 2009 Posts: 1
|
Posted: Sat Feb 28, 2009 3:15 pm Post subject: is mysql running? |
|
|
| I was getting the same exact error this morning and then realized that I hadn't started mysql. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|