![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I can do a mysql -u root and then type in create database restaurant_test, development, production but when I run rake db:create:all I get: (in /Users/katherinekoehler/Documents/workspace/kkoehler/classes/ruby/lesson5/restaurant) Couldn't create database for {"socket"=>"/tmp/mysql.sock", "reconnect"=>false, "encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql", "host"=>"localhost", "password"=>nil, "database"=>"restaurant_development", "pool"=>5}, charset: utf8, collation: utf8_general_ci (if you set the charset manually, make sure you have a matching collation) Couldn't create database for {"socket"=>"/tmp/mysql.sock", "reconnect"=>false, "encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql", "host"=>"localhost", "password"=>nil, "database"=>"restaurant_production", "pool"=>5}, charset: utf8, collation: utf8_general_ci (if you set the charset manually, make sure you have a matching collation) Couldn't create database for {"socket"=>"/tmp/mysql.sock", "reconnect"=>false, "encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql", "host"=>"localhost", "password"=>nil, "database"=>"restaurant_test", "pool"=>5}, charset: utf8, collation: utf8_general_ci (if you set the charset manually, make sure you have a matching collation) My .yml files: development: adapter: mysql encoding: utf8 reconnect: false database: restaurant_development pool: 5 username: root password: host: localhost socket: /tmp/mysql.sock /tmp/mysql.sock exists My mysql process: 74 195 173 0 32:13.26 ?? 109:41.08 /sw/sbin/mysqld --basedir=/sw --datadir=/sw/var/mysql --user=mysql --pid-file=/sw/var/mysql/katherine-koehlers-macbook-pro.local.pid -u root I also did a sudo gem update mysql-ruby to make sure I had the latest libraries. I've spent hours on this. *Any ideas? Kathy -- Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
so is this mysql default charset as latin1 really a problem? |
#6
| |||
| |||
|
|
I am having a similar problem. *Did you find a solution? On Nov 8, 12:37*am, dan <mr.dan.ma... (AT) gmail (DOT) com> wrote: so is this mysql default charset as latin1 really a problem? |
![]() |
| Thread Tools | |
| Display Modes | |
| |