Forum: Radiant CMS radiant install problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B03a63f9294524418ac4d486f567323c?d=identicon&s=25 Captain Feng (lumao66)
on 2007-04-12 18:38
(Received via mailing list)
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.
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (Guest)
on 2007-04-12 21:08
(Received via mailing list)
Several questions before we can help you:
1) Is MySQL running?  Did you create the database?
2) What version of Radiant are you using? (0.5.2, 0.6RC2, mental...)
3) Did you create/copy database.yml?

Sean
B03a63f9294524418ac4d486f567323c?d=identicon&s=25 Captain Feng (lumao66)
on 2007-04-13 09:45
Sean Cribbs wrote:
> Several questions before we can help you:
> 1) Is MySQL running?  Did you create the database?
> 2) What version of Radiant are you using? (0.5.2, 0.6RC2, mental...)
> 3) 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
B03a63f9294524418ac4d486f567323c?d=identicon&s=25 Captain Feng (lumao66)
on 2007-04-15 07:58
Hi Sean,
   Does radiant0.5.2.2 supports Mysql5.0?
Regards.
captain
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (Guest)
on 2007-04-15 19:17
(Received via mailing list)
Radiant supports any database supported by Rails.  So, yes, it supports
MySQL 5, and that's what I run on my local machine.

Sean
6ec6f77ea603dd75b3a7a7775b059e79?d=identicon&s=25 John W. Long (Guest)
on 2007-04-15 20:35
(Received via mailing list)
Sean Cribbs 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 Long
http://wiseheartdesign.com
145e373624d173d2226a3dec4c563dfe?d=identicon&s=25 Jack Tang (Guest)
on 2007-04-16 05:53
(Received via mailing list)
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 <fengyu8299@gmail.com> 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
145e373624d173d2226a3dec4c563dfe?d=identicon&s=25 Jack Tang (Guest)
on 2007-04-16 05:54
(Received via mailing list)
On 4/16/07, Sean Cribbs <seancribbs@gmail.com> 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:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>


--
Keep Discovering ... ...
http://jack.lifegoo.com
B03a63f9294524418ac4d486f567323c?d=identicon&s=25 Captain Feng (lumao66)
on 2007-04-16 10:20
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 <fengyu8299@gmail.com> 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
6ec6f77ea603dd75b3a7a7775b059e79?d=identicon&s=25 John W. Long (Guest)
on 2007-04-16 15:18
(Received via mailing list)
Captain Feng 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-...

--
John Long
http://wiseheartdesign.com
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (Guest)
on 2007-04-16 16:08
(Received via mailing list)
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
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (Guest)
on 2007-04-16 16:09
(Received via mailing list)
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
This topic is locked and can not be replied to.