"getaddrinfo: Name or service not known" error. MySQL drive

Dear list:

I have one app running merrily on a Linux box. I can run “rake
migrate” on it with no trouble, start it, stop it, and restart it.

I created a second app and uploaded it to the same box. Aside from the
database names, the database.yml files are exactly the same.

Yet when I run “rake migrate” on the new app, I get:

(in /home/[USERNAME]/rails/[APPNAME]/releases/20061113210744)
** Invoke migrate (first_time)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
getaddrinfo: Name or service not known
/usr/local/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:108:in
`initialize’
…[et cetera]

Can anyone give me a hint where to start to investigate this? Should I
be updating my Rails, or my MySQL driver? Any pointers in the right
direction would be greatly appreciated.

John Young wrote:

Dear list:

I have one app running merrily on a Linux box. I can run “rake
migrate” on it with no trouble, start it, stop it, and restart it.

I created a second app and uploaded it to the same box. Aside from the
database names, the database.yml files are exactly the same.

Yet when I run “rake migrate” on the new app, I get:

(in /home/[USERNAME]/rails/[APPNAME]/releases/20061113210744)
** Invoke migrate (first_time)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
getaddrinfo: Name or service not known
/usr/local/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:108:in
`initialize’
…[et cetera]

Can anyone give me a hint where to start to investigate this? Should I
be updating my Rails, or my MySQL driver? Any pointers in the right
direction would be greatly appreciated.

Did you ever get an answer to this?
I am getting a similar error when I try to do:
rake db:structure:dump --trace
(in /home/…)
** Invoke db:structure:dump (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:structure:dump
rake aborted!
getaddrinfo: Name or service not known
…/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:111:in
`initialize’
etc.