Hello folks.
I am new to MySQL (as you will soon see, no doubt!!). New, as in, like, 2 days new. Can't even hold my eyes straight yet (if you're a parent, you might get that).
Our entertainment division uses MySQL as the database of choice for their various websites. They are not command-line-type people (who would want to that? i mean I like command line OK, but I'm weird). Using their PHP Admin program, they administer the databases quite efficiently.
All of us can log on fine via the PHP interface. Additionally, I've installed the MySQL ODBC in a few places and it works fine. We all use the username root and password abc. No problems.
My problem is that I can't access the MySQL server via the command prompt.
I do this:
then I get
at which time I type
at which time I then get:
Is the "@localhost" part the problem? It looks like it's adding that to the user name and so the name root@localhost is what's being authenticated instead of just root. Just a guess. If so, how do I fix it?
Many thanks.
-Mike Kemp
I am new to MySQL (as you will soon see, no doubt!!). New, as in, like, 2 days new. Can't even hold my eyes straight yet (if you're a parent, you might get that).
Our entertainment division uses MySQL as the database of choice for their various websites. They are not command-line-type people (who would want to that? i mean I like command line OK, but I'm weird). Using their PHP Admin program, they administer the databases quite efficiently.
All of us can log on fine via the PHP interface. Additionally, I've installed the MySQL ODBC in a few places and it works fine. We all use the username root and password abc. No problems.
My problem is that I can't access the MySQL server via the command prompt.
I do this:
Code:
c:\mysql\bin\mysql -u root -p
Code:
Enter password:
Code:
abc
Code:
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES).
Is the "@localhost" part the problem? It looks like it's adding that to the user name and so the name root@localhost is what's being authenticated instead of just root. Just a guess. If so, how do I fix it?
Many thanks.
-Mike Kemp