0

I am new Ruby on Rails. I need to access mysql database of one server (For example, xxx.xxx.xx) to another server (xxx.xxx.xx) in ruby on rails. is this possible in ruby script? Can you anybody guide me?

1
  • You mean you have a remote db? Commented Feb 6, 2012 at 17:38

1 Answer 1

1

You just need to mention host and port in your database.yml file.

production:
  adapter: mysql
  database: databasename
  username: username
  password: password
  host: xx.xx.xx.xx
  port: 3306
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks. I need another clarification. i have rake task for importing images using remote_url with the help of paperclip plugin. created photos folder under rails project folder if i run that rake on localhost server. is it possible to put all images in the new server.
I guess it should, but am not sure. Try to figure it out from google search, if you could not found any solution ask a new question. There should be somebody who might faced the same issue and could help you out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.