Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2015-04-09 11:58:53

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,388
Website GitHub Mastodon Twitter

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

#17 2015-04-09 12:27:46

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,737
GitHub

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

#18 2015-04-09 12:37:35

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [SOLVED] Migrating databases larger than 8,192KiB?

slogin is an alias for the ssh client => use ssh.

Offline

#19 2015-04-09 13:57:26

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,388
Website GitHub Mastodon Twitter

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

#20 2015-04-09 15:39:30

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,388
Website GitHub Mastodon Twitter

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

#21 2015-04-09 22:06:56

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [SOLVED] Migrating databases larger than 8,192KiB?

You could use an option file containing the password, using --defaults-extra-file=file_name

Offline

#22 2015-04-11 06:40:55

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,388
Website GitHub Mastodon Twitter

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

#23 2015-04-11 18:07:18

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#24 2015-04-12 05:22:36

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,388
Website GitHub Mastodon Twitter

Re: [SOLVED] Migrating databases larger than 8,192KiB?

ruud wrote #289913:

Leave out the -u user part.

I’m blind as a bat. Thanks so much yet again.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB