Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.