I need the exact commands to type from the beginning in putty to first connect to my db and then to get the error logs contained in /var/lib/mysql/HOSTNAME.err file. Thanks

link|improve this question
3  
Do you have any familiarity with using the command line at all? Because there's no reason I know of that you'd connect to a database (whose name you never gave) and reading an error log. – Bart Silverstrim Jul 6 '11 at 20:52
1  
if you dont know how to use basic command line tools or scp/sftp you probably shouldnt be poking around the server – anthonysomerset Jul 6 '11 at 21:00
feedback

closed as not a real question by Zypher Jul 6 '11 at 21:06

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

1 Answer

PuTTY isn't the right tool for the job. You want psftp. run psftp

psftp> open remotehost.tld
login as: user
password: your password
Remote working directory is /home/user
psftp> get /var/lib/mysql/HOSTNAME.err
psftp exit

or, if as @zypher suggests psftp doesn't work try pscp

pscp user@remotehost.tld:/var/lib/mysql/HOSTNAME.err .
link|improve this answer
1  
It's more likely that pscp will work than psftp. since scp just runs over ssh port 22 and sftp needs to be configured (which most hosting providers still don't have) – Zypher Jul 6 '11 at 20:53
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.