mysty Posted August 18, 2006 Share Posted August 18, 2006 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? Quote Link to comment Share on other sites More sharing options...
fenway Posted August 19, 2006 Share Posted August 19, 2006 Your localhost alias may not be correct. Quote Link to comment Share on other sites More sharing options...
mysty Posted August 20, 2006 Author Share Posted August 20, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.