1

我已经将我的 OSX 更新为山狮和我的 mysql 了。所以现在我无法运行任何 db rake 命令...

diego@diego-imac vanilla (work) $ rake db:create

(in /Users/diego/Documents/v2v/projects/vanilla)
Couldn't create database for {"encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql", "database"=>"v2v_vanilla_dev", "password"=>nil}, charset: utf8, collation: utf8_unicode_ci (if you set the charset manually, make sure you have a matching collation)

我在网上找到了很多解决方案,但没有一个能解决我的问题。谁能帮我?

谢谢

一些信息:

服务器版本:5.1.60 MySQL 社区服务器(GPL)

mysql (2.8.1)
    Author: TOMITA Masahiro
    Rubyforge: http://rubyforge.org/projects/mysql-win
    Homepage: http://mysql-win.rubyforge.org
    Installed at: /Users/diego/.rvm/gems/ruby-1.8.7-p352@v2v

    This is the MySQL API module for Ruby

导轨 (2.3.11)

diego@diego-imac vanilla (work) $ which mysql /usr/local/mysql/bin/mysql

diego@diego-imac local (master) $ ls -lha | grep mysql 

lrwxr-xr-x   1 root   wheel    24B 26 Jul 15:31 mysql -> mysql-5.1.60-osx10.6-x86
drwxr-xr-x  16 root   wheel   544B 29 Out  2011 mysql-5.1.60-osx10.6-x86
4

1 回答 1

0

确保更新后 MySql 仍在运行:单击系统偏好设置 -> 其他 -> MySql 或仅在终端中运行:

ps ax|grep mysqld|grep -v grep

(输出不应为空)。

如有必要,运行它(使用首选项或sudo /usr/local/mysql/bin/mysqld_safe终端中的开始按钮)。

于 2012-07-26T21:46:46.650 回答