Re: Access denied for user 'ODBC'@'localhost'

"Ahmed Han" <[email protected]> Thu, 28 Jun 2007 23:46:37 +0300
Newsgroups gmane.comp.db.mysql.windows
Message-ID <[email protected]>
I did exactly what is written
here<http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html>,
and solved my problem. But I still don't know how this problem occurred out
of nowhere in the first place.

On 6/28/07, Ahmed Han <[email protected]> wrote:
>
> Yes I tried.
>
> mysql -hlocalhost -uroot -ppassword
> Doesn't work.
>
> mysql -hlocalhost -uroot
> WORKS!
>
> mysql -hlocalhost -ppassword
> Doesn't work.
>
> mysql -uroot -ppassword
> Doesn't work.
>
> mysql -hlocalhost
> Doesn't work.
>
> mysql -uroot
> WORKS!
>
> mysql -ppassword
> Doesn't work.
>
> From my understanding, it seems like the root password I write is
> incorrect. But how can it be possible? It was working perfectly last night,
> I could connect with the same command and I didn't do any modifications
> since then. And I'm the only one using this computer.
>
> On 6/28/07, [email protected] <[email protected]>
> wrote:
> >
> >
> > Have you tried it without the localhost option?   By default it should
> > check localhost first - I believe unless otherwise specified in your
> > application.
> >
> > Spencer McCormack, GANB's Unix/Linux SA
> > 404-215-1166
> >
> > I have PHP&MySQL installed on my system well working.
> >
> > I get error Access denied for user 'ODBC'@'localhost' when I connect
> > MySQL
> > using command line with a command like this :
> > mysql -hlocalhost -uroot -ppassword
> >
> > But I connect with no problem using the following command :
> > mysql -uroot
> >
> > Why do I get error when I specify the host name and password? My final
> > purpose is connecting to mysql via PHP. But I get the same error in PHP.
> >
> >
>