Ask libmysql.dll

When I run controller http://127.0.0.1:3000/test
it asks for libmysql.dll
Errno::ECONNREFUSED in TestController#index

No connection could be made because the target machine actively refused
it. - connect(2)

RAILS_ROOT: C:/ruby/student
Application Trace | Framework Trace | Full Trace

i get it in mysql but when i install it in bin folder it says unable to
connect.how can i connect it with ruby on rails
thanks
mani

Go to your mysql/bin
and copy paste libmysql.dll to ruby/bin
after that restart your webrick or ruby server.

i get it in mysql but when i install it in bin folder it says unable to
connect.how can i connect it with ruby on rails
thanks

Check first what is your mysql server run? if your mysql is ok. then
check your config/database.yml

check all configuration there :

development:
adapter: mysql
database: database_name
username: root
password: my_password
host: localhost

You should ensure that all login information to database mysql is
correct.

Good Luck,

Reinhart
http://teapoci.blogspot.com

I have done what u said I have copy paste libmysql.dll to ruby/bin but
now I am run http://127.0.0.1:3000/

i found unable to connect(problem loading page).
I am sending u my database.yaml file as an attechment
I have created database by
create database db_development;
create database db_test;
create database db_deployment;

Rails T. wrote:

Go to your mysql/bin
and copy paste libmysql.dll to ruby/bin
after that restart your webrick or ruby server.

i get it in mysql but when i install it in bin folder it says unable to
connect.how can i connect it with ruby on rails
thanks

Check first what is your mysql server run? if your mysql is ok. then
check your config/database.yml

check all configuration there :
http://127.0.0.1:3000/
development:
adapter: mysql
database: database_name
username: root
password: my_password
host: localhost

You should ensure that all login information to database mysql is
correct.

Good Luck,

Reinhart
http://teapoci.blogspot.com

your configuration is correct, what is your problem right now?

IF you can reach http://127.0.0.1:3000/ successfully, it means that your
rails is successfully connected to database.

If you have problem in loading page you should check your controller and
corresponding method.

Example:

class SuperHeroController < ApplicationController

def index
#index page business logic here
end

def listing
listing page business logic here
end

end

so that your url will be http://127.0.0.1:3000/super_hero/listing

if you want http://127.0.0.1:3000/ redirect to your main page you should
do modification at app_name/config/route.rb:

ActionController::Routing::Routes.draw do |map|
map.connect ‘’, :controller => “super_hero”

end

don’t forget to delete index.rhtml or index.html.erb in app_name/public/

if you need me, you can chat online here:

Yahoo Messenger : sxapril
MSN : [email protected]

Good Luck,
reinhart
http://teapoci.blogspot.com