Quote:
Originally Posted by mandud
At the first i want to fix mysql server that didnt want to start
|
Then you should find out from the log file what it errors out on and
fix that.
Quote:
Originally Posted by mandud
so i follow this steps http://www.unixmen.com/mysqld-dont-start/
|
First of all this tutorial just removes and reinstalls software by reflex (common for users of tEh oTher OS) but more importantly
it doesn't address the actual error. Like I wrote elsewhere on LQ some tutorials are not that good (outdated, incomplete, lacking knowledge, inefficient etc, etc) but this one is really bad.
Quote:
Originally Posted by mandud
in that article written rm var folder
so all my files in var folder deleted
|
No, the article said "rm -rf /var/lib/mysql". Alas it didn't tell you to make backups of your databases first and you didn't question the tutorials commands.
Quote:
Originally Posted by mandud
i've try to install scalpel but it cant
|
My ESP is at an all time low and so at least for me "it can't" is not a helpful indication of what happened. Next time try to be efficient and verbose listing complete commands and errors.
Quote:
Originally Posted by mandud
is there any solutions to restore this folder?
|
Depending on how log ago deletion happened and if you used the machine in the meantime (the lethal combo) you should attach large enough external storage or another partition and make a copy of the partition to a file on that disk as backup first (as in 'dd if=/dev/partition_name of=/mount_point/partition/name_of_file.dd'). If you only have space for recovered items or if you never separated /var from / then you just have to live with it. Boot a Live CD that contains Photorec, select the filter for only text and MySQL items and ensure you write recovered items to your attached external storage or a partition that does not hold /var.