Quote:
Originally Posted by TheBaker
And how would I use those? Would they work as my user, or would I have to be the mysql user to transfer them?
|
If it is possible to login remotely with the mysql user, use from your own machine
scp -r mysql@remotemachine:/var/lib/mysql .
or
rsync -az mysql@remotemachine:/var/lib/mysql .
(check location of the mysql database dir)
The mysql user can change permissions on the files in the "0777" folder. One could zip them for easy handling. Only root can change owner.
And in case You can't login as mysql user, go to the other machine, sudo su to mysql user, cd to your normal users dir, and
scp -r 0777dir you@yourmachine:
or
rsync -az 0777dir you@yourmachine:
they will be owned by you on your machine.