backing up database

Advertisement

toproadliveradio
Joined:
Posts:
2

backing up database

i'm trying to backup my database

my host told me to use this
mysql -h servername -u USER -pPASSWORD database-name < dumpfilename.sql

i'm logged onto the server now...and i'm at the command line

i'm TOTALLY confuse
was is the specific info to put in the command line (so i could just input my info)?
thx.

Reply with quote E-mail

Advertisement

TS
Guest

I'm not sure what this has to do with WinSCP. I think your host was telling you how to restore your database, not back it up. You probably want something along the lines of

mysqldump -ssl -F -h dbserver.example.com -u toproadliveradio -r dbdump.sql

Run "man mysqldump" or "mysqldump --help" (or Google) for more information. The -ssl is optional but highly recommended. Substitute the name of your database server for dbserver.example.com and substitute your database username in place of toproadliveradio.

Reply with quote

AMK
Guest

Schedule mysqldump with WinSCP .bat file

Is there a way to schedule mysqldump with WinSCP? I've been struggling with this for months.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Schedule mysqldump with WinSCP .bat file

AMK wrote:

Is there a way to schedule mysqldump with WinSCP? I've been struggling with this for months.
For scheduling read FAQ. For executing remote command see "call" command in scripting documentation. Note that you would have to probably increase session timeout.

If you wish to execute only the mysqldump (without downloading), you would have it easier with plink from PuTTY package.

Reply with quote

Advertisement

You can post new topics in this forum