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$
Any Idea why this is happening?
I only got an error on mysql -v
command
Thank you.
what you want ? verbose or version ?
if you want server side version, connect to server, send query
status;
You should connect server with full args, example:
or put the args on
~/.my.cnf
just like mine: