Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

MySql Password error

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I m working with MySql database, and Tomcat. I wanted to create simple web page using JSP connected to a MySql database. I m working on Win98 and am working at home.
But the problem i receive is i installed MySql and i gave a password and the server is running fine.
But when in the command line i type this
C:\mysql>bin\mysql -p
Enter password: *****
ERROR 1045: Access denied for user: 'ODBC@localhost' (Using password: YES)
I get the above error, even though i m typing the right password. I know the server is running as when i ping to the server i get the message that "mysqld is alive"
So i dont know why the password keeps giving me this error. Is there any way i can reset the password?
Can anyone help....pleaseeeee
Suzana
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you might try specifying a user. For MySQL Max 4.0 the correct command argument is:
mysql -user=some_user -password=some_password
You may be getting the error because it doesn't know what user you are trying to log in as, so it used the default user. Most cases the default user is root. I don't know where the ODBC@localhost is comming from. Usually you get a root@localhost.
This also sounds more like a MySQL problem, in which case you won't get many answers here. Maybe consult the docs at http://www.mysql.com
Hope that helps.
 
Now I am super curious what sports would be like if we allowed drugs and tiny ads.
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic