Forum: Ruby on Rails Can't run MySQL queries

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
43ec5998360a0cc21b51afef1781e9c0?d=identicon&s=25 Daniel Higginbotham (Guest)
on 2006-04-15 03:37
(Received via mailing list)
Hi everyone,

I'm having trouble actually running mysql queries. I can connect to the
database, I think, but when a query gets run the following shows up in
my
log:

  SQL (0.000000)   Mysql::Error: Lost connection to MySQL server during
query: SHOW TABLES

Any suggestions?

Thanks!
Daniel Higginbotham
40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2006-04-15 03:52
(Received via mailing list)
Hi Daniel, are you running queries from the MySQL command prompt?

-Conrad
43ec5998360a0cc21b51afef1781e9c0?d=identicon&s=25 Daniel Higginbotham (Guest)
on 2006-04-15 04:10
(Received via mailing list)
Nevermind, it's fixed. Apparently there had been some problems
installing
the mysql gem, but it's all working now.



sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql



Got the gem installed fine.



  _____

From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Conrad Taylor
Sent: Friday, April 14, 2006 3:50 PM
To: rails@lists.rubyonrails.org
Subject: Re: [Rails] Can't run MySQL queries



Hi Daniel, are you running queries from the MySQL command prompt?

-Conrad

On 4/14/06, Daniel Higginbotham <daniel@flyingmachinestudios.com> wrote:

Hi everyone,

I'm having trouble actually running mysql queries. I can connect to the
database, I think, but when a query gets run the following shows up in
my
log:

  SQL (0.000000)   Mysql::Error: Lost connection to MySQL server during
query: SHOW TABLES

Any suggestions?

Thanks!
Daniel Higginbotham
This topic is locked and can not be replied to.