I have problem with mysql and it can not start. If I delete folder
var/lib/mysql
and then I reinstall mysql it works.
If I restore old files to var/lib/mysql then it doesn't work.
- I have a database there that i need to backup.
I tried mysqldump but I get
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
so is there a way to generate a .sql file from
var/lib/mysql