Jump to content

Archived

This topic is now archived and is closed to further replies.

mysty

strange connection using cmd prompt

Recommended Posts

I just installed apache2triad about 3 weeks ago.  Using mysql from the cmd prompt was not a problem until yesterday.  If I type "mysql" and enter, then type "show databases;", I can see my databases and can do the normal things.
If I type "mysql -h localhost, -u root, -p password" I get an error message that says "unknown mysql host server 'localhost'  ".  Any variation of host, user, or password shows the same thing.
Any ideas of where to look in my configuration that would cause this?

Share this post


Link to post
Share on other sites
Your localhost alias may not be correct.

Share this post


Link to post
Share on other sites
I finally figured this one out.  I feel like such a newbie (which I am).
The problem was that I started to put a semicolon at the end of the DOS command.  Like this  mysql -h hostname -u username -p password;
As soon as I figured this out, everything worked fine.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.