Hello,
This might have very little to do with Typo but suddenly my connection
to mysql isn’t working (it might have happened after an apt-get update
but I’m not sure).
When I try to access my blog it fails and in the log it says:
Mysql::Error: Lost connection to MySQL server during query: SELECT *
FROM articles LIMIT 1
Do you have any idea what could be causing this?
Running:
Ubuntu
Rails 1.1.4
mysql Ver 14.12 Distrib 5.0.22, for pc-linux-gnu (i486) using readline
5.1
mongrel
If I log in to the database with
mysql -u user -p
with the same credentials as in database.yml it works like a charm. I
also tried adding socket: in database.yml.
Hello,
This happens sometimes in development mode. Are you sure you’re in
production mode ?
Best regards,
Frédéric
Le 2 janv. 08 à 10:53, Jonas Elfström a écrit :
On 1/2/08, Frederic de Villamil [email protected] wrote:
This happens sometimes in development mode. Are you sure you’re in
production mode ?
Pretty sure, unless the -e production in mongrel_rails has stopped
working.
On 1/2/08, Jonas Elfström [email protected] wrote:
When I try to access my blog it fails and in the log it says:
Mysql::Error: Lost connection to MySQL server during query: SELECT *
FROM articles LIMIT 1
Even though it had nothing to do with Typo I still believe it’s good
manners to post the solution.
Added:
deb Index of /ubuntu dapper universe multiverse
deb-src Index of /ubuntu dapper universe multiverse
in /etc/apt/sources.list
sudo apt-get install libmysqlclient15-dev
gem install mysql
and then it worked to compile the ruby-version 2.7.
Then I restarted mongrel and it was all peachy again.