Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

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. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the 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

1 Answer 1

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 .
share|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

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