Database restore can't read the gz file

Version 1.232


When a user restores a db.gz file, it's uploaded to the tmp directory, then the gunzip/mysql programs are run on it. The problem was the uploaded file was owned by "nobody" and there were not sufficient permissions on the file for the user to read the file to restore it. This fix chmods the file to 755 before executing the gunzip/mysql commands. As a workaround (if you have ssh access), you can save the file to your home directory, cd to your home directory, then run: gunzip < dbfile.gz | mysql -uusername -ppassword dbname

Interested to try DirectAdmin? Get a 30-day Free Trial!