[CentOS] MySQL installation problem

Jeff jlar310 at gmail.com
Thu Nov 5 16:35:56 UTC 2009


On Thu, Nov 5, 2009 at 10:11 AM, Victor Subervi <victorsubervi at gmail.com> wrote:
> Hi;
> It's been a while since I controlled my own server and I'm rusty. Trying to
> install mysql
> yum install mysql
> All looks well. Here's what happens:
>
> [root at 13gems www]# mysql
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2)
> [root at 13gems www]# mysql -u root -p
> Enter password:
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2)
>
> There's no mysqld in the ps wax. Please advise.
> beno

The mysql package is just client stuff and libraries. You need:

yum install mysql-server

--
Jeff


More information about the CentOS mailing list