bitnami@ip-10-99-67-123:~/.rvm/gems$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
bitnami@ip-10-99-67-123:~/.rvm/gems$ rails -v
Rails 3.2.3
bitnami@ip-10-99-67-123:~/.rvm/gems$ mysql --version
mysql Ver 14.14 Distrib 5.5.22, for debian-linux-gnu (x86_64) using readline 6.2
bitnami@ip-10-99-67-123:~/.rvm/gems$ mysql -v
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
bitnami@ip-10-99-67-123:~/.rvm/gems$
知道为什么会这样吗?
mysql -v
我只收到命令错误
谢谢你。