# Looking for a small database testing application

**URL:** <https://www.ruby-forum.com/t/looking-for-a-small-database-testing-application/183812>\
**Category:** Rails\
**Created:** [February 20, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/looking-for-a-small-database-testing-application/183812 "2010-02-20T22:28:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vfclists](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5f9b8f/32.png) [@vfclists](https://www.ruby-forum.com/u/vfclists)\
**Post date:** [February 20, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/looking-for-a-small-database-testing-application/183812/1 "2010-02-20T22:28:52Z")

</div>

I keep getting an error when I try to run a redmine installation.

This is what comes up.

.gems/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/  
mysql\_adapter.rb:589:in `real\_connect’: Can’t connect to local MySQL  
server through socket ‘/var/run/mysqld/mysqld.sock’ (2) (Mysql::Error)

The database server is a remote server, and I can’t see why  
activerecord is complaining about the absence of a local socket.

The part of the installation to initialize the database went fine.

Is there a small test app I can use to check if the database  
connectivity part is working properly? Something read a row or test  
the existings of some tables?

---

<div class="post-metadata">

**Author:** ![vfclists](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5f9b8f/32.png) [@vfclists](https://www.ruby-forum.com/u/vfclists)\
**Post date:** [February 20, 2010, 10:29pm UTC](https://www.ruby-forum.com/t/looking-for-a-small-database-testing-application/183812/2 "2010-02-20T22:29:27Z")

</div>

On Feb 20, 7:42 pm, vfclists [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I keep getting an error when I try to run a redmine installation.
> 
> This is what comes up.
> 
> .gems/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/  
> mysql\_adapter.rb:589:in `real\_connect’: Can’t connect to local MySQL  
> server through socket ‘/var/run/mysqld/mysqld.sock’ (2) (Mysql::Error)
> 
> The database server is a remote server, and I can’t see why  
> activerecord is complaining about the absence of a local socket.

Probably because the app hasn’t been configured to look for that  
remote server, so it’s defaulting to the local machine.

Fred
