New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

How to change owner and permission for sql. database?

Started by zigi00x, March 25, 2022, 08:29:10 PM

Previous topic - Next topic

zigi00x

Hii,

i copied the sql database from one user to another by FileManager in cwp, but when i was do, i get wrong owner and permissions, as u can see in the picture.



How i change the owner acces from phpmyadmin to moved database by filemanager?

Sorry for my ENG.

Thank you.


iraqiboy90

#1
To change ownership:
chown user:user filename
To change permission [x being a number]
chmod xxx filename
I don't know which permission you want. So I can't give you the number. You could also google it.

I recommend backing up the SQL through phpmyadmin and then import it. I feel like this would minimize database corruption.

but if you insist on copying it like you did, then you need to use this extra command option with the copy command to copy the ownership and permissions with it:
cp -p