0

Here is strange problem.

databse server ip : 170.2.14.131

application server ip : 170.2.14.137

Application is on cloud server. Database server is on another instance and application hosted on different instance.

production:
  adapter: mysql
  database: database_name
  username: ************
  password: ************
  host: 170.2.14.131

This is my database.yml configuration for production environment.

Now when i am trying to connect through my application it's using application server IP instead of remote databse IP.

Please suggest.

4
  • Just to clarify development is the correct environment? Just stands out as I wouldn't expect development to be running on separate machines in the cloud. Commented Mar 20, 2012 at 7:54
  • In production we are not getting log, but we are getting same error also for production environment. Commented Mar 20, 2012 at 7:59
  • What makes you say that it's connecting to the wrong server? What precise error messages/exceptions are you seeing? Commented Mar 20, 2012 at 8:18
  • Overcome issue by setting Mysql privileges . Thanks for all your support. Commented Mar 21, 2012 at 10:50

1 Answer 1

1

By default, MySQL database server remote access disabled for security reasons. there're 3 solutions to this problem, i'll not describe them here, you can read about it in my blog here: http://notes.kloop.kg/2011/11/17/enable-remote-access-to-mysql-database-server/

Sign up to request clarification or add additional context in comments.

1 Comment

Overcome issue by setting Mysql privileges , thanks for all support.

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.