를 생성 : 생성 : 나는 아래 생각할 수있는 모든 가능한 버전과 설정 정보를 첨부했습니다레일 DB : 레이크 DB를 실행할 때 나는 문제에 봉착 정렬 오류
[[email protected] /domain/rails/testapp ]# rake db:create --trace
(in /domain/rails/testapp)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create
Couldn't create database for {"adapter"=>"mysql", "encoding"=>"utf8", "collation"=>"utf8_bin", "reconnect"=>false, "database"=>"testapp_development", "pool"=>5, "username"=>"root", "password"=>"rootpass", "socket"=>"/var/run/mysqld/mysqld.sock", "host"=>"127.0.0.1"}, charset: utf8, collation: utf8_bin (if you set the charset manually, make sure you have a matching collation)
. 나는 Google에서 찾은 모든 솔루션을 시도했지만 운이 없었습니다. 누구든지 해결책이나 제안이 있습니까? 감사!
[[email protected] /domain/rails/testapp ]# mysql --version
mysql Ver 14.14 Distrib 5.1.38, for unknown-linux-gnu (x86_64) using EditLine wrapper
mysql> show variables like "character_set_database";
+------------------------+-------+
| Variable_name | Value |
+------------------------+-------+
| character_set_database | utf8 |
+------------------------+-------+
1 row in set (0.00 sec)
mysql> show variables like "collation_database";
+--------------------+----------+
| Variable_name | Value |
+--------------------+----------+
| collation_database | utf8_bin |
+--------------------+----------+
1 row in set (0.00 sec)
[[email protected] /domain/rails/testapp ]# ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]
[[email protected] /domain/rails/testapp ]# rails -v
Rails 2.3.4
[[email protected] /domain/rails/testapp ]# gem -v
1.3.5
[[email protected] /domain/rails/testapp ]# gem list
*** LOCAL GEMS ***
actionmailer (2.3.4)
actionpack (2.3.4)
activerecord (2.3.4)
activeresource (2.3.4)
activesupport (2.3.4)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.7)
gem_plugin (0.2.3)
mysql (2.8.1)
rack (1.0.0)
rails (2.3.4)
rake (0.8.7)
rubygems-update (1.3.5)
내 database.yml을 :
development:
adapter: mysql
encoding: utf8
collation: utf8_bin
reconnect: false
database: testapp_development
pool: 5
username: root
password: rootpass
socket: /var/run/mysqld/mysqld.sock
host: 127.0.0.1
응답 해 주셔서 감사합니다. /또는 인코딩 및 데이터 정렬을 지정하지 않고 시도했지만 이러한 순열 중 어느 것도 작동하지 않았습니다. –