I am trying to install MySQL on Linux. And it seems that I'm confused which MySQL package I should use for my particular Linux environment.
My Linux Details:
Linux 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 6.0 (Final)
So I went for MySQL package MySQL-server-5.5.20-1.linux2.6.x86_64.rpm
(download from here). I choose Linux-Generic
from dropdown. But when I try to install it I got this error:
error: Failed dependencies:
libaio.so.1()(64bit) is needed by MySQL-server-5.5.20-1.linux2.6.x86_64
libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.5.20-1.linux2.6.x86_64
libaio.so.1(LIBAIO_0.4)(64bit) is needed by MySQL-server-5.5.20-1.linux2.6.x86_64
I got more failed dependencies errors when I choose MySQL-server-5.5.20-1.linux2.6.i386.rpm
. So both are not working.
mysql
command i got this errorERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'