2012-07-26 49 views
1

我已经更新我的OSX到山狮和我的MySQL太..所以现在我不能运行任何数据库耙命令我不能运行耙分贝:创建山狮

[email protected] 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/[email protected] 

    This is the MySQL API module for Ruby 

轨(2.3.11)

diego @ diego-imac vanilla(work) $其中MySQL的 在/ usr /本地/ MySQL的/斌/ MySQL的

[email protected] 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 

回答

0

MySQL是仍然运行在更新后确认:点击系统偏好设置 - >其他 - > MySQL或只是在终端中运行:

ps ax|grep mysqld|grep -v grep 

(输出不应为空)。

必要时运行它(在首选项中启动按钮或终端中的sudo /usr/local/mysql/bin/mysqld_safe)。

相关问题