I can't log in to my fedora linux because of I/O errors(system halts after grub). Now I want to create a backup from my mysql databases. I tried
chroot /path/to/root and then
mysqldump, but I get the following error:
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) when trying to connect
I'm using an ubuntu live disk. Why does it show this error? Is there a better way to dump dbs?