[前][次][番号順一覧][スレッド一覧]

rails:1428

From: "M.Suzuki" <suzk@o...>
Date: Sat, 29 Jul 2006 17:17:06 +0900
Subject: [rails:1428] Re: gem install mysqlのエラー

鈴木です。

望月さん、問題は解決してるでしょうか?
まだのようでしたら、rails list の方で同じような問題への対処の仕方が
流れてましたので以下に引用してみます。参考になれば


From:  Duzenbury, Rich <rduzenbury@b...>
Date: 2006/07/28 0:43
Subject: RE: [Rails] Connecting to mysql 4.1.12 server SOLVED
To: rails@l...

> -----Original Message-----
> From: rails-bounces@l... [mailto:rails-
> bounces@l...] On Behalf Of Duzenbury, Rich
> Sent: Wednesday, July 26, 2006 5:02 PM
> To: rails@l...
> Subject: [Rails] Connecting to mysql 4.1.12 server
>
> Hi,
>
> I'm building a rails app on win32, and need to develop, test, and
deploy
> to a mysql 4.1.12 server running on a Linux server.
>
> Whenever I attempt to connect to the database_development or
> database_test directly from my workstation, I get the 'Lost connection
> to MySQL server during query', however, I can connect directly from my
> local mysql client on my workstation with no difficulty:
>

The problem is that the 4.1.12 database had old privilege tables from a
previous release.  I fixed the privilege tables via these instructions:

http://dev.mysql.com/doc/refman/4.1/en/mysql-fix-privilege-tables.html

Then, I had to restart the mysql server 'select password('foo')' still
returned a short password.

Then, I changed the password used by the rails userid so it would
generate a long password in the mysql.user table.

Restarted WebBrick and everything works fine now.

-- 
M.Suzuki

--
ML: rails@r...
使い方: http://QuickML.com/

[前][次][番号順一覧][スレッド一覧]

      1409 2006-07-26 21:18 [swallow@r...        ] gem install mysqlのエラー               
      1411 2006-07-27 12:06 ┗[someeda@g...        ]                                       
      1412 2006-07-27 12:41  ┗[swallow@r...        ]                                     
      1413 2006-07-27 13:20   ┣[suzk@o...           ]                                   
      1414 2006-07-27 14:39   ┣[nov@y...            ]                                   
->    1428 2006-07-29 10:17   ┗[suzk@o...           ]                                   
      1441 2006-08-01 08:38    ┗[swallow@r...        ]                                 
      1446 2006-08-02 23:07     ┗[swallow@r...        ]                               
      1448 2006-08-02 23:37      ┗[don@n...            ]                             
      1450 2006-08-03 00:03       ┗[swallow@r...        ]