# Native mysql client

**URL:** <https://www.ruby-forum.com/t/native-mysql-client/90970>\
**Category:** Rails\
**Created:** [April 3, 2007, 1:42pm UTC](https://www.ruby-forum.com/t/native-mysql-client/90970 "2007-04-03T13:42:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stemey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@stemey](https://www.ruby-forum.com/u/stemey)\
**Post date:** [April 3, 2007, 1:42pm UTC](https://www.ruby-forum.com/t/native-mysql-client/90970/1 "2007-04-03T13:42:19Z")

</div>

Hi,

I have problems with mongrel not responding after a long time of no  
traffic. I heard it has to do with the mysql adapter. I should use the  
native version. Does this only work if the mysql server is installed  
on the same machine? I installed the libmysqlclient and tried to  
install the mysql gem but it does not work :

ruby extconf.rb install mysql --include-dependencies  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lm… yes  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lz… yes  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lsocket… no  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lnsl… yes  
checking for mysql\_query() in -lmysqlclient… no

I found out that a configuration is missing:

gem install mysql – --with-mysql-config=/usr/local/mysql/bin/  
mysql\_config

I don’t have suh a configuration - it seems to indicate that I have to  
have the mysql server running on that machine. Thta is not possible  
for me.

Thanx,  
Stefan

---

<div class="post-metadata">

**Author:** ![stemey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@stemey](https://www.ruby-forum.com/u/stemey)\
**Post date:** [April 3, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/native-mysql-client/90970/2 "2007-04-03T16:54:30Z")

</div>

What operating system are you using?

---

<div class="post-metadata">

**Author:** ![stemey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@stemey](https://www.ruby-forum.com/u/stemey)\
**Post date:** [April 3, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/native-mysql-client/90970/3 "2007-04-03T17:14:31Z")

</div>

debian linux

---

<div class="post-metadata">

**Author:** ![stemey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@stemey](https://www.ruby-forum.com/u/stemey)\
**Post date:** [April 3, 2007, 5:15pm UTC](https://www.ruby-forum.com/t/native-mysql-client/90970/4 "2007-04-03T17:15:31Z")

</div>

Actually it’s suse linux - not debian.
