Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

MySQL Ownership Incorrect

General questions about VestaCP
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
mbsmi
Posts: 17
Joined: Thu Aug 21, 2014 4:03 am

Os: Ubuntu 15x
Web: apache + nginx
MySQL Ownership Incorrect
  • Quote

Post by mbsmi » Sat Mar 26, 2016 8:55 pm

A few moments ago I incorrectly ran a chown command and gave all directories and files on my server ownership to root as shown below:

Code: Select all

chown / root:root
Now none of my sites can connect to their mysql database, I would assume due to MySQL not belonging to the correct user. My question, what folder(s) do I need to reset back to the mysql user and group? Also, are there other services that I need to do this same thing we?

Thanks for your help
Michael
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: MySQL Ownership Incorrect
  • Quote

Post by tjebbeke » Sun Mar 27, 2016 6:05 pm

What is your OS?
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: MySQL Ownership Incorrect
  • Quote

Post by mehargags » Sun Mar 27, 2016 11:20 pm

Friend... you are screwed!
you cannot undo that because you don't know user and group ownership of each and every file and directory under "/"

You best bet is :
1. Restore from a Snapshot if your VPS has that
2. Create a New fresh Server, then restore data from a Vesta daily Backup set to it and verify it with files in your previous server.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: MySQL Ownership Incorrect
  • Quote

Post by skurudo » Tue Mar 29, 2016 2:25 pm

mbsmi wrote: Also, are there other services that I need to do this same thing we?
Michael, you can try to restore dirs/files ownership manyally, but this is hell of work
Take mehargags adviсe ;-)
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password