Can't run MySQL queries


#1

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 H.


#2

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

-Conrad


#3

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: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Conrad T.
Sent: Friday, April 14, 2006 3:50 PM
To: removed_email_address@domain.invalid
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 H. removed_email_address@domain.invalid 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 H.