Jump to content

strange connection using cmd prompt


mysty

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?
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.