Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Error access MySQL

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys,

A have the following problem:

I need to access a MySQL 5 database through the PHP language and the Java language.

When access using PHP does not occur any error.

But when accessing using Java, the following error message occurs:

java.sql.SQLException: Access denied for user 'autbio.com'@'187.84.232.228' (using password: YES)

I do not understand the cause of this problem using Java.

Thanks,

Fernando

 
Sheriff
Posts: 6039
157
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message is saying that either your username or your password or both are wrong.
 
Marshal
Posts: 24594
55
Eclipse IDE Firefox Browser MySQL Database
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, when you configure users and passwords in MySQL, you have to specify what addresses the users can connect from. (Frequently people put the code for "all addresses" in that column but there could be cases where you want to restrict a user to signing on from, say, only one particular machine.)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!