Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [SOLVED] Migrating databases larger than 8,192KiB?
I am revisiting this post of mine as I am rewriting it for txptips and I am wondering if slogin will be safer than ssh on step 2. Can someone advise?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [SOLVED] Migrating databases larger than 8,192KiB?
Isn’t slogin a symlink an alias to ssh anyway? That’s my understanding, anyway.
Edit: what Ruud said below
Last edited by gaekwad (2015-04-09 12:40:01)
Offline
Re: [SOLVED] Migrating databases larger than 8,192KiB?
slogin is an alias for the ssh client => use ssh.
Offline
Re: [SOLVED] Migrating databases larger than 8,192KiB?
Thanks guys. I’ll keep ssh
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [SOLVED] Migrating databases larger than 8,192KiB?
Another question:) When I am on step 4
mysqldump -u accountname -pmypassword db_name > /users/home/accountname/backups/dbb.sql
I get a response from the server that my connection is not secure. Is there any way I can make that connection secure in light of the fact that I am using a password in there?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [SOLVED] Migrating databases larger than 8,192KiB?
You could use an option file containing the password, using --defaults-extra-file=file_name
Offline
Re: [SOLVED] Migrating databases larger than 8,192KiB?
Hi ruud. Thanks so much for your advice.
I now have
mysqldump -u user --defaults-extra-file=/path/to/myfile.cnf db_name | gzip -c > /path/to/my/backup/folder/db.sql.gz
which creates the dump but I also get an error
mysqldump: unknown variable 'defaults-extra-file=/path/to/myfile.cnf'
in myfile.cnf I have:
[mysqldump]
user = myusername
password = mypassword
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [SOLVED] Migrating databases larger than 8,192KiB?
Leave out the -u user part.
Btw, if you’re documenting this, make sure to add that the myfile.cnf file should have permissions set to 600.
Offline
Re: [SOLVED] Migrating databases larger than 8,192KiB?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline