Jump to content


strange connection using cmd prompt

  • Please log in to reply
2 replies to this topic

#1 mysty

  • Members
  • PipPipPip
  • Advanced Member
  • 83 posts

Posted 18 August 2006 - 09:22 PM

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?

#2 fenway

  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 19 August 2006 - 01:14 AM

Your localhost alias may not be correct.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 mysty

  • Members
  • PipPipPip
  • Advanced Member
  • 83 posts

Posted 20 August 2006 - 01:21 AM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users