hi,
I want ot install radiant on windows, but when i execute the
ruby script/setup_database production
i have such exception:
Creating tables…
– drop_table(“config”)
– create_table(“config”, {:force=>true})
FAILED
./script/…/config/…/vendor/rails/activerecord/lib/active_record/vendor/mysql.r
b:551:in initialize': wrong number of arguments (1 for 0) (ArgumentError) from ./script/../config/../vendor/rails/activerecord/lib/active_record/v endor/mysql.rb:551:in
new’
from
./script/…/config/…/vendor/rails/activerecord/lib/active_record/v
endor/mysql.rb:551:in scramble41' from ./script/../config/../vendor/rails/activerecord/lib/active_record/v endor/mysql.rb:141:in
real_connect’
from
./script/…/config/…/vendor/rails/activerecord/lib/active_record/c
onnection_adapters/mysql_adapter.rb:330:in connect' from ./script/../config/../vendor/rails/activerecord/lib/active_record/c onnection_adapters/mysql_adapter.rb:87:in
initialize’
from
./script/…/config/…/vendor/rails/activerecord/lib/active_record/c
onnection_adapters/mysql_adapter.rb:36:in new' from ./script/../config/../vendor/rails/activerecord/lib/active_record/c onnection_adapters/mysql_adapter.rb:36:in
mysql_connection’
from
./script/…/config/…/vendor/rails/activerecord/lib/active_record/c
can anyone do me the favour? thank you.
Several questions before we can help you:
- Is MySQL running? Did you create the database?
- What version of Radiant are you using? (0.5.2, 0.6RC2, mental…)
- Did you create/copy database.yml?
Sean
Sean C. wrote:
Several questions before we can help you:
- Is MySQL running? Did you create the database?
- What version of Radiant are you using? (0.5.2, 0.6RC2, mental…)
- Did you create/copy database.yml?
Sean
Hi Sean,
Thank you for your reply.
1)Database is running. radiant_development.
2)I am using radiant-0.5.2
3)here is my database.yml
development:
adapter: mysql
database: radiant_development
username: root
password: sa
host: localhost
Warning: The database defined as ‘test’ will be erased and
re-generated from your development database when you run ‘rake’.
Do not set this db to the same as development or production.
test:
adapter: mysql
database: radiant_test
username: root
password: sa
host: localhost
production:
adapter: mysql
database: radiant_production
username: root
password: sa
host: localhost
Thank you.
captain
Radiant supports any database supported by Rails. So, yes, it supports
MySQL 5, and that’s what I run on my local machine.
Sean
Hi Sean,
Does radiant0.5.2.2 supports Mysql5.0?
Regards.
captain
Sean C. wrote:
Radiant supports any database supported by Rails.
Well, not quite. We actively test on mysql, sqlite, and postgres.
I’m open to supporting other databases as well and I will happily apply
any patches that resolve problems for a particular adapter. I’d even be
willing to hand commit rights over to anyone who is willing to maintain
code for a particular database adapter (outside the three I just
mentioned).
It is relatively straightforward to get Radiant running on another
database adapter.
–
John L.
http://wiseheartdesign.com
Hi Captain Yu
You are not alone. I post the same question some days ago, and still
now got no solution
/Jack
On 4/13/07, captain yu [email protected] wrote:
./script/…/config/…/vendor/rails/activerecord/lib/active_record/vendor/mysql.r
./script/…/config/…/vendor/rails/activerecord/lib/active_record/v
–
Keep Discovering … …
On 4/16/07, Sean C. [email protected] wrote:
Radiant supports any database supported by Rails. So, yes, it supports
MySQL 5, and that’s what I run on my local machine.
Sean
Hi, Sean
What’s your OS? windows or linux?
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
–
Keep Discovering … …
Captain F. wrote:
… ok, in order to catch the problem, let me describe my steps in
detailed:
Environment:
OS:Windows XP
DB:Mysql 5.0
Rails:1.2.3
Ruby:1.8.6
Mmm, I’m not sure if 0.5.2 is compatible with ruby 1.8.6. Can you
install the second release candidate for 0.6?
http://radiantcms.org/blog/2007/03/08/radiant-0-6-release-candidate-2/
–
John L.
http://wiseheartdesign.com
Windows XP, MySQL 5.022.
I’d rather be running Ubuntu if I could give up Blizzard games, or Mac
OSX if I could afford a shiny new MacBook Pro. But right now I’m on
Windows.
Sean
Ok, I didn’t realize you were using 0.5.2. You should probably install
Rails 1.1.6 as well, I’m not sure that 0.5 is compatible with 1.2.x.
gem install -y -v=1.1.6 rails
Sean
Jack Tang wrote:
Hi Captain Yu
You are not alone. I post the same question some days ago, and still
now got no solution
/Jack
On 4/13/07, captain yu [email protected] wrote:
./script/…/config/…/vendor/rails/activerecord/lib/active_record/vendor/mysql.r
./script/…/config/…/vendor/rails/activerecord/lib/active_record/v
–
Keep Discovering … …
http://jack.lifegoo.com
… ok, in order to catch the problem, let me describe my steps in
detailed:
Environment:
OS:Windows XP
DB:Mysql 5.0
Rails:1.2.3
Ruby:1.8.6
I directly downloaded the radiant0.5.2.2 and unziped to my computer
instead of using gem;
Created datebase: radiant_dev radiant_test radiant_live;
Created database.yml:
////////////////
development:
adapter: mysql
database: radiant_dev
username: root
password: sa
test:
adapter: mysql
database: radiant_test
username: root
password: sa
production:
adapter: mysql
database: radiant_live
username: root
password: sa
///////////////
Executed ruby script/setup_database production and got the following
exception:Loading development environment…OK
WARNING! This script will overwrite information currently stored in the
database “radiant_dev”. Are you sure you want to continue? [Yn] Y
Creating tables…
– drop_table(“config”)
– create_table(“config”, {:force=>true})
FAILED
./script/…/config/…/vendor/rails/activerecord/lib/active_record/vendor/mysql.r
b:551:in initialize': wrong number of arguments (1 for 0) (ArgumentError) from ./script/../config/../vendor/rails/activerecord/lib/active_record/v endor/mysql.rb:551:in
new’
from
./script/…/config/…/vendor/rails/activerecord/lib/active_record/v
endor/mysql.rb:551:in scramble41' from ./script/../config/../vendor/rails/activerecord/lib/active_record/v endor/mysql.rb:141:in
real_connect’
from
./script/…/config/…/vendor/rails/activerecord/lib/active_record/c
onnection_adapters/mysql_adapter.rb:330:in connect' from ./script/../config/../vendor/rails/activerecord/lib/active_record/c onnection_adapters/mysql_adapter.rb:87:in
initialize’
from
./script/…/config/…/vendor/rails/activerecord/lib/active_record/c
onnection_adapters/mysql_adapter.rb:36:in new' from ./script/../config/../vendor/rails/activerecord/lib/active_record/c onnection_adapters/mysql_adapter.rb:36:in
mysql_connection’
from
./script/…/config/…/vendor/rails/activerecord/lib/active_record/c
onnection_adapters/abstract/connection_specification.rb:251:in send' ... 14 levels... from script/setup_database:99:in
create_tables’
from script/setup_database:19:in run' from script/setup_database:9:in
run’
from script/setup_database:297
Ok, that's it, can anyone catch the problem?
Thanks and regards.
captain