It could be permissions issues on /var/lib/mysql folder. Check the mysql log for more information. Some suggestions can be found from the following link.
http://forums.fedoraforum.org/archive/index.php/t-19402.html
Regards,
Lakmal
--- On Mon, 8/31/09, Dharshana kasun Warusavitharana <dkasunw@???> wrote:
> From: Dharshana kasun Warusavitharana <dkasunw@???>
> Subject: [linux] Mysql error----"Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
> To: linux-raw@???
> Date: Monday, August 31, 2009, 9:57 PM
> Dear all
> This is my first issue that im posting to LUG mailing list.
> And so happy to be with sri lankan foss community
>
> Im a fedora 11 user and i have used mysql with out issue so
> far
> but now in reciving the eror msg
>
>
> [kasun@kasun ~]$ mysql
> ERROR 2002 (HY000): Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (2)
>
> [root@kasun ~]# /etc/init.d/mysqld start
> Timeout error occurred trying to start MySQL Daemon.
>
> Starting
> MySQL:
> [FAILED]
>
>
> stucks with no respond
>
> [root@kasun ~]# mysql -u root -h localhost -p
> Enter password:
> ERROR 2002 (HY000): Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (2)
>
>
> placr of the socket is returned as
>
> [root@kasun ~]# mysql_config --socket
> /var/lib/mysql/mysql.sock
>
> I deleted mysql.sock from var/lib/mysql hoping that the file will
> be
>
> recreated when i start the mysqld but this didnt happen and
> the error
> remains the same.
>
> and i completely remove mysql and re install it by yum
> yet the issue remains
>
>
> then i remove it and install tarball distributions
> but yet im undone
>
>
> Please some one help me
>
> thank you
>
>
>
> --
> Dharshana Kasun Warusavitharana
> Faculty of Engineering Technology
>
> The Open University of Sri Lanka
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> linux mailing list
> linux@???
> https://secure.lug.lk/mailman/listinfo/linux
>
_______________________________________________
linux mailing list
linux@???
https://secure.lug.lk/mailman/listinfo/linux