Starting the Command Line MySQL client

For some reason, I had a hard time connecting to an external server through my command line client. I’ve done it before, but I had to dig up the manual to find the answer…

mysql -uusername -ppassword -hhostname

I’m sure that’s what I was doing but it wasn’t working… funny thing. Anyway, I’m posting this so that I can remember to read the article I linked to above.

One Response to “Starting the Command Line MySQL client”

  1. Ligaya Turmelle Says:

    I personally prefer the
    >mysql -u user -p -h host -D db

    But that’s me

Leave a Reply