So I installed MySQL using yum install mysql
on an Amazon EC2 Micro instance using the Basic 64-bit Amazon Linux AMI 2010.11.1 Beta AMI. I try to connect to MySQL using the command mysql
but I get the following error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I can't understand why this is happening. I seem to be the same as this question here. What can I do?