Jump to content

Need urgent help


karimali831

Recommended Posts

Hello,

 

I executed a rather stupid command "chown -R apache:user /" which crashed the entire VPS and upon restarting the container, nothing was running and my host said the MySQL / DNS etc has been damaged as a result. The databases are very important to me and when I attempt to use mysqldump, I get the following error:

 

Couldn't execute '/*!40103 SET TIME_ZONE='+00:00' */': Can't find file: './mysql/time_zone_name.frm' (errno: 13) (1017)

 

So I access SFTP and can see my databases at /var/lib/mysql which contain many files in them and not the .sql file itself. Question is, will I able to restore my databases by downloading these files within the database directory?

Link to comment
https://forums.phpfreaks.com/topic/207493-need-urgent-help/
Share on other sites

If you used MyISAM tables only (as opposed to InnoDB), that should be enough. Also make sure to backup your configuration file (my.ini).

 

Be aware, that data files could get corrupted when server crashed. If you're lucky, simple REPAIR TABLE command will fix it.

Link to comment
https://forums.phpfreaks.com/topic/207493-need-urgent-help/#findComment-1084806
Share on other sites

I have never used this method before so I am not sure how to do this.

 

BUT.. I'm sure there is a way to bypass this error:

 

Couldn't execute '/*!40103 SET TIME_ZONE='+00:00' */': Can't find file: './mysql/time_zone_name.frm' (errno: 13) (1017)

 

what does it mean? time_zone_name.frm is missing file in var/lib/mysql ?

Link to comment
https://forums.phpfreaks.com/topic/207493-need-urgent-help/#findComment-1084815
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.