Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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

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